%script to plot the solutions. filename: problem_4_driver.m
%HW1, problem 4, MATH 513, Univ. Of Wisconsin, Madison. Spring 2014
%by Nasser M. Abbasi

close all; clear all;
x1 = ssolve(10,.1,30);
x2 = ssolve(2,-0.05,50);

fig1 = figure(1);clf;
set(0,'DefaultAxesFontName', 'Times New Roman')
set(0,'DefaultAxesFontSize', 10)
subplot(1,2,1);

set(fig1,'defaulttextinterpreter','latex');
plot(x1,'-');
xlabel('$x$');
ylabel('$y(x)$');
title('solution of $ssolve(10,.1,30)$');
grid on;

subplot(1,2,2);

plot(x2,'-'); 
xlabel('$x$');
ylabel('$y(x)$');
title('solution of $ssolve(2,-0.05,50)$');

grid on;



