More Functions - Arduinerd/PDS-MatLab GitHub Wiki
There are many more functions supported by MatLab than named in this tutorial
Arrays and Matrices
- zeroes (Returns a nxn matrix of zeroes)
- ones (Returns a nxn matrix of ones)
- eye (Returns an identity matrix of size nxn)
- spy (Graph the values in a matrix)
- linspace (Return an array from a start to an end with n values)
- sort (Returns a given matrix with each column sorted)
- magic (Returns a magic square of size nxn)
- rot90 (Rotates the values in a given matrix 90 degrees)
- reshape (Reassign the values to a given matrix that is nxm)
- transpose (transpose the array)
- inverse (make the inverse of a square array - the same as variable^-1)
- linsolve (Returns a 1x2 array with the coordinates that solve a linear equation)
Strings
- num2str (Converts a numerical value to a string)
- [ ] (Concatenates all string variable)
- disp (Prints a string representation of the value)
- strcmpi (Returns a numerical comparison of two strings)
- latex (Prints out the LaTex code for a function)
Variables
- class (Returns class of variable)
- whos (Returns all information in the workspace about a variable)
- isinf (Returns a logical of whether a variable is infinite)
- isnan (Returns a logical of whether a variable is not a number)
General
- VER (List out all available toolboxes)
- Click Fx next to command input for documentation
- help functionName (prints out documentation on specific function)