MATLAB Basics Quiz Form
Test your knowledge of MATLAB fundamentals. Please complete all questions below. All fields are required.
Full Name
*
First Name
Last Name
Email Address
*
example@example.com
Which of the following is the correct way to create a 1x3 row vector in MATLAB?
*
[1 2 3]
[1; 2; 3]
{1, 2, 3}
1:3:1
What function is used to display text in the command window?
*
disp
show
print
echo
Write the MATLAB command to clear all variables from the workspace.
*
Which symbol is used for element-wise multiplication in MATLAB?
*
*
.*
&
:
What is the output of the command length([2 4 6 8])?
*
3
4
2
8
Select the correct syntax for a for-loop that iterates from 1 to 5 in MATLAB.
*
for i = 1:5
for (i in 1:5)
for i {1..5}
foreach i = 1 to 5
What will be the result of the command sum([1 2 3 4])?
*
10
24
4
None of the above
Which command is used to plot a line graph in MATLAB?
*
plot
line
draw
graph
Briefly describe what the 'clc' command does in MATLAB.
*
Submit Quiz
Should be Empty: