wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MATLAB Envinronment Intro

Total questions: 10

Worksheet time: 4mins

Name
Class
Date
1.

Which MATLAB instructions are wrong?

a)

zeta = 12 + 5

b)

1 + 1 = two;

c)

50_deg = 0.8

d)

frac = 7/8

2.

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;

a)

10

b)

5

c)

4

d)

3.14

3.

Given the MATLAB expression 6+6*6-4, select the correct result delivered by MATLAB.

a)

ans = 38

b)

ans = 68

c)

ans = 18

d)

ans = 88i

4.

Please select all valid variable names in MATLAB syntax.

a)

amber4

b)

_sysVar

c)

2arcTan

d)

nUmElE_tau_de_azi_il_voi_UITA

5.

Which variables will remain in MATLAB Workspace after the execution of left side code lines

a)

x

b)

y

c)

ans

d)

xy

6.

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.

a)

FALSE

b)

TRUE

7.

Select the MATLAB commands that will delete all variables from MATLAB Workspace.

a)

clear

b)

clc

c)

delete

d)

clear all

8.

Being declared the variables a, b, c, d, e. Select the equivalent MATLAB expressions.

a)

x = a + b + c + d + ...

e;

b)

x = a + b + c + d + e;

c)

x = a +

b +

c +

d +

e ;

d)

x = a + b +

c + d + e;

9.

Select the component that is not part of the MATLAB Environment.

a)

Command Window

b)

Workspace

c)

Figure Window

d)

Surface Window

10.

Using MATLAB command doc select the MATLAB function that computes the tangent of the angle in degrees.

a)

tandeg

b)

tand

c)

tgDeg

d)

degtan