Assignment11_Chapter4_Exercise6

Assignment11_Chapter4_Exercise6 - xlabel('Time (s) - log');...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% Ashwin Satish % Assignment 11 - Chapter 4, Exercise #6 % ENES 101 / 0103 % % Define variables and constants P0 = 1000; r = .08; t = 0:30; t % P = current balance P = P0 * exp(r .* t); P % Plot the information subplot(2,2,1) plot(t,P) title('Time vs. Current Balance'); xlabel('Time (s)'); ylabel('Current Balance ($)'); y subplot(2,2,2) semilogx(t,P) title('Time vs. Current Balance (Semilog)');
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: xlabel('Time (s) - log'); ylabel('Current Balance ($)'); y subplot(2,2,3) semilogy(t,P) title('Time vs. Current Balance (Semilog)'); xlabel('Time (s)'); ylabel('Current Balance ($) -log'); y subplot(2,2,4) loglog(t,P) title('Time vs. Current Balance (log-log)'); xlabel('Time (s)'); ylabel('Current Balance ($)'); y...
View Full Document

This note was uploaded on 08/28/2011 for the course ENES 101 taught by Professor Bayles during the Spring '08 term at UMBC.

Ask a homework question - tutors are online