WorksheetsMATLAB Envinronment Intro
Total questions: 10
Worksheet time: 4mins
Which MATLAB instructions are wrong?
zeta = 12 + 5
1 + 1 = two;
50_deg = 0.8
frac = 7/8
Pick the correct value of the variable var1, if the following set of instructions is executed:
>> delta = 8;
>> var1 = delta/2;
>> delta = 5;
>> var_1 = delta*2;
10
5
4
3.14
Given the MATLAB expression 6+6*6-4, select the correct result delivered by MATLAB.
ans = 38
ans = 68
ans = 18
ans = 88i
Please select all valid variable names in MATLAB syntax.
amber4
_sysVar
2arcTan
nUmElE_tau_de_azi_il_voi_UITA
Which variables will remain in MATLAB Workspace after the execution of left side code lines
x
y
ans
xy
TRUE or FALSE?
Running the left side command in MATLAB Command Window, MATLAB displays only 4 digits after the period. True or false that in MATLAB memory the number is saved also with only 4 digit precision.
FALSE
TRUE
Select the MATLAB commands that will delete all variables from MATLAB Workspace.
clear
clc
delete
clear all
Being declared the variables a, b, c, d, e. Select the equivalent MATLAB expressions.
x = a + b + c + d + ...
e;
x = a + b + c + d + e;
x = a +
b +
c +
d +
e ;
x = a + b +
c + d + e;
Select the component that is not part of the MATLAB Environment.
Command Window
Workspace
Figure Window
Surface Window
Using MATLAB command doc select the MATLAB function that computes the tangent of the angle in degrees.
tandeg
tand
tgDeg
degtan
