filmov
tv
How to plot Multiple graphs on single figure in Matlab | Subplot Matlab

Показать описание
In order to compare the results side by side, you may need to plot multiple graphs on a single figure in Matlab. This short video is about the same thing. With the use of command Subplot, you can compare the results for your variable on the same figure.
__________________________________________________________
The code shown in the video:
% Plot original data
subplot(3,1,1);
plot(LoadAngleFault1);
title('Transient Response Fault Clearing Time 0.2 Sec');
xlabel('Time (sec)'); ylabel('Delta');
subplot(3,1,2);
plot(LoadAngleFault2);
title('Transient Response Fault Clearing Time 0.6 Sec');
xlabel('Time (sec)'); ylabel('Delta');
subplot(3,1,3);
plot(LoadAngleFault3);
title('Transient Response Fault Clearing Time 1.2 Sec');
xlabel('Time (sec)'); ylabel('Delta');
__________________________________________________________
The code shown in the video:
% Plot original data
subplot(3,1,1);
plot(LoadAngleFault1);
title('Transient Response Fault Clearing Time 0.2 Sec');
xlabel('Time (sec)'); ylabel('Delta');
subplot(3,1,2);
plot(LoadAngleFault2);
title('Transient Response Fault Clearing Time 0.6 Sec');
xlabel('Time (sec)'); ylabel('Delta');
subplot(3,1,3);
plot(LoadAngleFault3);
title('Transient Response Fault Clearing Time 1.2 Sec');
xlabel('Time (sec)'); ylabel('Delta');