MatLab 08

# MatLab 08 - -2-1.5-1-0.50.511.522.4567dog timecat...

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

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.

Unformatted text preview: -2-1.5-1-0.50.511.522.53-2-11234567dog timecat distancecat and dog raceThe following commands are entered into the editor window to create a labeled graph of three functions.plot(t,exp(-.5*t)+2*t,'r:p');hold on;plot(t,2*exp(-.5*t)+2*t,'b:d');plot(t,3*exp(-.5*t)+2*t,'g:s');grid on; xlabel('dog time'); ylabel('cat distance');title('cat and dog race'); hold offThe t values are defined by entering this command into matlab.>> t=-2:.2:3; gibbonThe following commands are entered into the editor window to create a labeled graph of three functions.plot(t,2,'r:p'); hold on;plot(t,2-exp(-.5*t),'b:s');123456780.20.40.60.811.21.41.61.82timesalt concentrationwater softenerplot(t,2-2*exp(-.5*t),'g:d');grid on; xlabel('time'); ylabel('salt concentration');title('water softener'); hold offThe t values are defined by entering these commands into matlab.>> t=0:.2:4; tarzan>> t=0:.2:8; tarzanThe following commands are entered into the editor window to create a labeled graph of three functions with the first function labeled on the plot.graph of three functions with the first function labeled on the plot....
View Full Document

## This note was uploaded on 07/10/2011 for the course CALC 1301 taught by Professor Marshak during the Spring '11 term at Minnesota.

### Page1 / 6

MatLab 08 - -2-1.5-1-0.50.511.522.4567dog timecat...

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

View Full Document
Ask a homework question - tutors are online