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

Info icon This 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
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern