Matlab+homework+1

Matlab Worksheet 1

Part A

1. Get into Matlab: Use the diary command to record your activity in to a file: diary mydiary01.doc before you start your work. (And diary off to switch off your diary when you finish your work.)

At the Command Window assign a value x=10, then use the Up Key ↑ to repeat the expression, editing it to show the effect of using a semicolon after the 10, namely x=10;

Answers:

x=10

x =

10

x=10;

x

x =

10

2. Confirm whether the following names of variables are acceptable: a) Velocity Yes No

b) Velocity1 Yes No

c) Velocity.1 Yes No

d) Velocity_1 Yes No

e) Velocity-01 Yes No

f) velocityONE Yes No

g) 1velocity Yes No

Matlab+homework+1相关文档

最新文档

返回顶部