COMP 1200 Lecture : MATLAB NOTES
Document Summary
Use _ as a blank to be more descriptive. 1/16/19: variables- must start with a letter, or _ or 0-9, constant variables are not changed: all capital letters. Name number: keywords are not acceptable variable names (there is a list) Will allow you to use built in function names as variables, but don"t do that, ex: sin =3, but sin doesn"t equal 3. Single value (scalar) x=x+1: vector- one dimensional, matrix- 2d, added space doesn"t matter, compute from left to right use only ( ) not [ & { Square brackets is how you list a set of values into a name, vectors too, row vector. >> help linspace will explain what linespace is, it changes colors bc it recognizes it. >> v1 = 2:3:14 (vector, 3 numbers means the middle number is a step, increment. last number is the max number, not always the max number.