MATLAB Flashcards
What does Matlab stand for?
Matrix Laboratory
What symbol precedes all comments in Matlab?
%
Which of the following is not a pre-defined variable in Matlab
Gravity
This Matlab command clears all data and variables stored in memory
Clear
Characters in Matlab are represented in their value in memory
ASCII
What is not an aspect of a for/while loop
Runner
To better manage memory and prevent unnecessary memory allocations, Matlab uses:
Delayed copy
To print a newline in a fprintf statement, you must use the following escape character l
\n
In Matlab, this keyword immediately moves to the next iteration of the loop
continue
Which of the following will correctly define x,y, and z as symbols?
syms x y z/ syms xyz
Which of the these is the way to access the first element in a vector named v (assuming there is at least one element in the vector)?
v(1)
Which of the following is used to see of two elements are equal in MATLAB?
=
If vector = [1 2 3 4; 11 24 92 100; 345 65 90 1]. What will the value of a be equal to if this code is entered into Matlab»_space; [ a b ] = size (vector)?
1 2 3 4
What is the value of ans that is printed when the following code is run: isnumeric(32)
1
If I want to save a formatted string to memory, but don’t want to print it out, which command should I use?
sprintf