Professional Documents
Culture Documents
07:
Multiplotting in Matlab, more than one graphs on single figure, coloring and representation by
Maths symbols, labels and titles of graphs.
Tools: PC, Matlab
Lab. Objective:
Multiplotting in Matlab
Multiplotting mean how to plot more than one figures on subfigures in a single one figure.
Matlab Code:
%% multiplotting of waveforms%%
legend('cosine waveform')
legend('tangent waveform')
18
x 10
10 1
cosine waveform tangent waveform
8 0
6 -1
4 -2
2 -3
0 -4
-2 -5
-4 -6
-6 -7
-8 -8
-10 -9
0 2 4 6 8 0 5 10 15
Multigraphs on one figure mean to plot more than one graphs on a single one main figure.
Matlab code:
15
cosine waveform
cosecant waveform
10
-5
-10
0 1 2 3 4 5 6 7
Matlab Code:
%% multiplotting of waveforms%%
legend('cosine waveform')
10
cosine waveform
8
-2
-4
-6
-8
-10
0 1 2 3 4 5 6 7
legend('even waveform')
xlabel('time')%labelling x-axis
ylabel('amplitude')%labelling y-axis
amplitude
5
0
-10 -8 -6 -4 -2 0 2 4 6 8 10
time
Lab. Assignment:
Plot discrete time unit step function, continuous time decaying exponential and odd waveform on single
figure by sub plotting, add labels, titles, legends and grid on with graphs.