WorksheetsScientific Computing Lab
Total questions: 10
Worksheet time: 5mins
What command clears all variables in workspace browser?
clc
delete
clf
clear
Rules for naming variable: All variable name must contain letters, numbers and '_'s only.
True
False
What is the correct MATLAB command for y = 3(x+2) when x = 2?
>> y = 3*(x+2);
>> x =2;
>> y = 3(x+2);
>> x = 2;
>> x = 2;
>> y = 3*(x+2);
>> x = 2;
>> y = 3(x+2);
What is the size of an array if Arr = [9 3 5 7 10 0 16]?
7x1
7x7
1x7
7
What pre-defined constant in MATLAB that is usually generated as a result of a division by zero?
NaN
eps
Inf
i,j
True of False: The command window appears in the center of the desktop. Users enter command and see responses here.
True
False
Maybe
True or False: An array is a collection of data values organized into rows and colums.
True
False
Maybe
What is the correct MATLAB command for "Plot
y = x2−10x +15 from 0 to 10.">> x = 0:10;
>> y = x^2 - 10*x + 15;
>> plot(x,y)
>> x = [0:10];
>> y = x^2 - 10*x + 15;
>> plot(x,y)
>> y = x^2 - 10*x + 15;
>> x = 0:10;
>> plot(x,y)
>> y = x^2 - 10*x + 15;
>> x = [0:10];
>> plot(x,y)
Matlab stands for
Matrix laboratory
Mathematic laboratory
Mathworks laboratory
None of the above
Matlab was invented by
Cleve Moler
Clyde Taylor
Clive lloyd
None of the above
