% sys3plot.m % Generates three plots on page pertaining to solutions of a linear ODE % system. Plots include numerically generated solution(s) as functions % of t (ODE45), phase plane, and user-derived solution(s) or eigenvalues. % There is a choice of user-derived or eigenvalue plots. Necessary data, % information, and choices are entered via INITSYS.M figans=input('Do you already have a separate figure window for sys3plot? (y/n) ','s'); if figans=='n'; numfig=figure; end figure(numfig) clf set(numfig,'DefaultAxesFontSize',8) subplot(2,2,2) plot(s,y(:,1),'b-',s,y(:,2),'r--') title('Solution plot, ODE45') xlabel('x1 = solid, x2 = dashed') grid on subplot(2,2,4) grid off pplane2f(eqn_name,N,'x2 (vertical) vs x1 (horizontal)','') plot(y(:,1),y(:,2)) title('Phase Plane, ODE45') hold off if sum(abs(symbolicplot))~=0 if sum(abs(symbolicplot))==sum(abs('solutions')) subplot(2,2,3) if min(x0vec)