Which one of the following is a legitimate variable names in MATLAB?
Which of the following MATLAB calculations would result the value 1?
Which of the following MATLAB expression gives (-1).
The volume of a cylinder is . Define r as 3 and h as the row column h = [1,5,12].
Which of the following MATLAB expression is correct for solving the volumes of cylinders with the above h values.
Which of the following expressions generates an evenly spaced vector x containing 15 values
Between 4 and 20.
Consider matrix B generated by the following expression
B = ones(4) + eyes(4)
Which of the following is true.
Which of the following determines the number of elements N of the matrix B?
Which of the following is printed to standard output when the following expression is executed
fprintf('max temp is %.2f degree',100.2345)
Examine the following MATLAB code. What is the value of B at the end of the program:
A=2;
for ii=0:2:4
A=[A, A*ii];
end
B=A
The difference between a function and a script is: