ENGR 101 Lecture Notes - Lecture 12: Microsoft Excel, Matlab, Semicolon
Document Summary
You can access specific locations in a matrix like this: 5 6 7 8 9 ] a = [ 0 1 2 3 4 a(1,1:3) [0 1 2] a(1:2,3) [ 2. You can use logical arrays to show which elements of an array are bigger than, less than, equal to, etc. Display() is called when you don"t include a semicolon after a matlab line where an assignment occurs. Disp(data) will output only the data to the screen. 20. 5300 no semicolon here means display() was used by matlab only the number itself is shown the name of the variable and it"s value is shown initialized from the command window initialized within your script. Using built in functions rand() all variables/data defined in these ways will will remain active after your script file is finished. User input from the command window (putting input()) from files (. txt, . csv, . dat, . xlsx, . png, etc. )