%% Basic 2D Plot Example
%
% This is a basic "published" version of Basic2DPlotExample2.m.
%
% L. Oberbroeckling, 2018
%% Plot commands and plot
clear
x=linspace(-5,5); % sets x values to plot from -5 to 5
y1=x.^2; % y values of the first plot
y2 = 2*x; % y values of the second plot
plot(x,y1, x,y2,'--')
legend('y','dy/dx')
title('A plot example for MA251')
%% M-file that is not in "publishable" format
%
%% M-file that created this page
%
%% URL of published webpage
%
%% Date/time published
DateTimePublished = datestr(now)