matlab hw 4 stuff - 0.5812 23 0.08 1000 0.6297 24 0.08 1000...

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

View Full Document Right Arrow Icon
Problem 2 P=Po*exp(r*t) P = 1.0e+004 * Columns 1 through 13 0.1083 0.1174 0.1271 0.1377 0.1492 0.1616 0.1751 0.1896 0.2054 0.2226 0.2411 0.2612 0.2829 Columns 14 through 26 0.3065 0.3320 0.3597 0.3896 0.4221 0.4572 0.4953 0.5366 0.5812 0.6297 0.6821 0.7389 0.8004 Columns 27 through 30 0.8671 0.9393 1.0176 1.1023 fprintf('\n'); fprintf('P t Po r\n'); P t Po r fprint('------------------\n'); fprintf('%2d %6.4f %6.2f %-2s %-3s\n') t r Po P 1 0.08 1000 0.1083 2 0.08 1000 0.1174 3 0.08 1000 0.1271 4 0.08 1000 0.1377 5 0.08 1000 0.1492 6 0.08 1000 0.1616 7 0.08 1000 0.1751 8 0.08 1000 0.1896 9 0.08 1000 0.2054 10 0.08 1000 0.2226 11 0.08 1000 0.2411 12 0.08 1000 0.2612 13 0.08 1000 0.2829 14 0.08 1000 0.3065 15 0.08 1000 0.332 16 0.08 1000 0.3597 17 0.08 1000 0.3896 18 0.08 1000 0.4221 19 0.08 1000 0.4572 20 0.08 1000 0.4953 21 0.08 1000 0.5366 22 0.08 1000
Background image of page 1

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

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 0.5812 23 0.08 1000 0.6297 24 0.08 1000 0.6821 25 0.08 1000 0.7389 26 0.08 1000 0.8004 27 0.08 1000 0.8671 28 0.08 1000 0.9393 29 0.08 1000 1.0176 30 0.08 1000 1.1023 plot(t,P) xlabel('t') ylabel('P') title('Graph of P vs t'); 5 10 15 20 25 30 2000 4000 6000 8000 10000 12000 P t Graph of P versus t loglog(t,P) ylabel('P') xlabel('t') title('Graph of P versus t') 10 10 1 10 2 10 3 10 4 10 5 t semilogx(t) xlabel('t') ylabel('P') title('Graph of P versus t') 10 10 1 10 2 5 10 15 20 25 30 t P G raph of P vers us t semilogy(P) xlabel('t') ylabel('P') title('Graph of P versus t') 5 10 15 20 25 30 10 3 10 4 10 5 t Graph of P versus t...
View Full Document

Page1 / 3

matlab hw 4 stuff - 0.5812 23 0.08 1000 0.6297 24 0.08 1000...

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online