Access arrays

Accessing elements or data from arrays (matrices) is quite important when performing mathematical operations or gathering pertinent data.

For this example, assume that A = [1 2 3 4 5; 0 9 8 7 6; -1 2 -3 4 -5; 0 1 0 1 0].

1) Use Matlab to display the contents of the 3rd row and the 3rd thru 5th columns of A.

$_code

\n\n”;
if ($_code == $_answer1 || $_code == $_answer2) {
return true;
} else {
return false;
}
}
?>

>>

ans = -3 4 -5

“;
} else {
echo ‘Not quite correct, please try again!’;
}
}
?>