Basic 2D Plot Example

This is a basic "published" version of Basic2DPlotExample2.m.

L. Oberbroeckling, 2018

Contents

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

Basic2DPlotExample.m

M-file that created this page

Basic2DPlotExample2Web.m

URL of published webpage

Basic2DPlotExample2Web.html

Date/time published

DateTimePublished = datestr(now)
DateTimePublished =

05-Jan-2018 13:56:12