COMP 1200 Lecture : MATLAB NOTES

18 views2 pages

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents