MATLAB
A. In the matlab "&" is used as AND operator to operat on logical arrays together.
Suppose that A and B are two arrays of same size than the syntax for operator will be
Syntax: A & B
B. clc
clears all the text from
the Command Window, resulting in a clear screen. After running
clc
, you cannot use the scroll bar in the Command
Window to see previously displayed text. You can, however, use the
up-arrow key in the Command Window to recall statements from the
command history.
Use clc
in a MATLAB code file to always display
output in the same starting position on the screen.
C. In the matlab "|" is used as OR operator which will operat two logical arrays together.
Suppose that A and B are two arrays of same size than the syntax for operator will be
Syntax: A|B
Get Answers For Free
Most questions answered within 1 hours.