MATLAB Terms
MATLAB Terms
Matrix laboratory
This Matlab command clears all data and variables stored in memory
Clear
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 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 >> [ a b ] = size (vector)?
3
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
The output of
cat=[‘cat’ ‘dog’]
is
catdog
What are the difference between the ‘help’ and the ‘look for’ command?
Help returns the entire set while look for returns specific commands
What will the following set of commands do when they are present in a script file?
stem[y1, y2];
title(‘p’)
print -deps l
Store the graph as a separate file
The function to close the windows containing graphs generated from MATLAB is
Close all
Matlab language
Matlab running environment
Handle graphics
Matlab function library
Matlab application program interface (API)