This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
gibson:teaching:spring-2018:math445:lecture:arithmetic [2018/01/23 13:49] gibson [Evaluating expressions] |
gibson:teaching:spring-2018:math445:lecture:arithmetic [2018/01/24 18:02] gibson [Variables] |
||
---|---|---|---|
Line 112: | Line 112: | ||
====Variables==== | ====Variables==== | ||
+ | <code matlab> | ||
>> x = 4 % assign value of 4 to variable x | >> x = 4 % assign value of 4 to variable x | ||
x = | x = | ||
Line 127: | Line 128: | ||
ans = | ans = | ||
12 | 12 | ||
+ | </code> | ||
====Evaluating expressions==== | ====Evaluating expressions==== | ||