{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Assignment11_Chapter4_Exercise6

# Assignment11_Chapter4_Exercise6 - xlabel'Time(s log...

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

% 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)');
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

{[ snackBarMessage ]}

Ask a homework question - tutors are online