{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Math_1920___Computer_guide

# Math_1920___Computer_guide - BasicRules 1 ,...

This preview shows pages 1–2. Sign up to view the full content.

Math 1920 – Computer guide Basic Instructions for Computer Graphing Basic Rules: 1. The following commands are useful, but Matlab has an extensive help feature if you know how to use it. Try typing ‘help’, ‘help elfun’, ‘help graph2d’, and help ‘graph3d’ for additional commands. 2. Use of the ‘;’ at the end of a line silences the output. 3. Use ‘.*’ ‘.^’, and ‘./’ operators. They force term wise operations. 4. Matlab lets you run scripts, click on File‐> new ‐> m‐file. To run your script, save it and type the name of the script in the matlab window. 5. Matlab will ignore any commands following a ‘%’. 6. ‘Clear’ will reset all variable names in matlab. Sample Programs: Plot a space-curve (Helix) t=0:0.2:20; %Set values for the parameter. t = x0 : spacing : xf x=cos(t); y=sin(t); z=t; plot3(x,y,z); %plot the curve xlabel('x‐axis'); ylabel('y‐axis'); zlabel('z‐axis'); %label the axis Plot a space-curve (Spiral-helix) t=0:0.2:20; %Set values for the parameter.

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 3

Math_1920___Computer_guide - BasicRules 1 ,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online