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

function [] = log_plots_yourlogin(ind_vector,dep_vector) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Programmer(s) and Purdue Email Address(es): % 1. @purdue.edu % % Section #:ALL % % Assignment #: Homework 9 problem 4 - log plots % % Academic Integrity Statement: % % I/We have not used source code obtained from % any other unauthorized source, either modified % or unmodified. Neither have I/we provided access % to my/our code to another. The project I/we am/are % submitting is my/our own original work. % % log_plots_yourlogin - This function plots a set of data using linear, % semi-log, and log scales. % % INPUT ARGUMENTS % ind_vector - vector for the independent variable % dep_vector - vector for the dependent variable % % OUTPUT ARGUMENTS % none, displays a plot with 4 scales.

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: % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % Linear Plot subplot(2,2,1) plot(ind_vector,dep_vector,'b*') xlabel('Independent variable, x') ylabel('Dependent variable, y') title('Linear Plot') % Semi-log y Plot subplot(2,2,2) semilogy(ind_vector,dep_vector,'b*') xlabel('Independent variable, x') ylabel('Log(Dependent variable, y)') title('Semi-log Y Plot') % Semi-log x Plot subplot(2,2,3) semilogx(ind_vector,dep_vector,'b*') xlabel('Log(Independent variable, x)') ylabel('Dependent variable, y') title('Semi-log X Plot') % Log-Log Plot subplot(2,2,4) loglog(ind_vector,dep_vector,'b*') xlabel('Log(Independent variable, x)') ylabel('Log(Dependent variable, y)') title('Log Plot')...
View Full Document