% plotting.m

% This M-file plots a function.
%
% change defaults for plotting
set(0,'DefaultAxesFontSize',16)

% parameters
par1 = 0.2 
par2 = 3.0

% Form an x vector with 20 evenly spaced points between 0 and 1.
x = linspace(0.0,1.0,20);
y = par1 + par2 .* x

% plot the function. The "axis" statement is optional.
plot(x,y,'black');
axis([0 1 0 5]);
xlabel('x ');
ylabel('y ');

