MATLAB Assignment I
MATLAB Assignment I
2. The Matlab command clears all data and variables stored in memory:
a) clc b) clear c) Delete d) none of the above
5. Executing the following script file in MATLAB, what is the result after this program
executes?
y= a + b,
a = 2 ; b = sqrt(‐4) ;
6. Executing in the Command Window the following code, the displayed result is
A = [1:5; 2:6]; size(A)
a) 2 5 b) 5 2 c) 3 5 d) none of the above
A= [10 12 20 15; 15 36 33 42; 12 -8 -9 -7]. How can we index and retrieve the value 33
from this array?
Abrham G. (P.hD)