MATLAB onramp Flashcards
State which key symbolises multiplication
*
State which key symbolises division
/
State what a semicolon means
A semi colon suppresses the output
State what pressing the up arrow does
Pressing the up arrow recalls previous commands
Describe how to name a matlab variable
A matlab variable must start with a letter and contain only letters, numbers and underscores
State how to clear all workspace variables
Type in the command “clear”
State how to clear the command window
Type in the command “clc”
State the matlab constant for π
pi
State the matlab function for absolute values
abs
State the matlab function for calculating eigenvalues
eig
State the matlab function for calculating square roots
sqrt
Describe an array
All matlab variables are called arrays - each variable can be more than one number.
Describe a scalar
A scalar is one number, ie a 1 by 1 array (1 row by 1 column)
Describe how to create arrays with multiple elements
Using square brackets, you can create arrays. Eg x = [3 5]
Describe how to create an array with elements in a single row (a row vector)
Separate the elements using a space or a comma