%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%Octave:
%Single diagram with multiple curves
%
%Finn Aakre Haugen
%University of South-Eastern Norway
%finn.haugen@usn.no
%24 Oct 2018
%
%----------------------------------------------

clear all
close all
format compact

%----------------------------------------------
%Variables:
t=[0:1:20]';
u=-1+0.02*t;
y=sin(0.2*t);

%Plotting:
plot(t,y,'r',t,u,'b--') %r means red colour. 'b--': blue dashed lines.
xmin = 0; xmax = 30;
ymin = -2; ymax = 2;
axis([xmin xmax ymin ymax]);
grid minor on
xlabel('t [sec]')
ylabel('y (dashed) and u (dots) [volt]')
title('Data from Experiment 1')