1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| clear all
close all
load('data')
figure
subplot('Position',[0.05,0.7,0.25,0.25])
plot(X(x_bas:x_haut), signal(x_bas:x_haut,1)','b');
xlim([x_min x_max])
text(0.95,0.95,'E','Units','normalized','HorizontalAlignment','right','VerticalAlignment','top','BackgroundColor','b','FontWeight','bold','color','w')
subplot('Position',[0.37,0.7,0.25,0.25])
plot(X(x_bas:x_haut), signal(x_bas:x_haut,2)','r');
xlim([x_min x_max])
text(0.95,0.95,'N','Units','normalized','HorizontalAlignment','right','VerticalAlignment','top','BackgroundColor','r','FontWeight','bold','color','w')
subplot('Position',[0.68,0.7,0.25,0.25])
plot(X(x_bas:x_haut), signal(x_bas:x_haut,3)','g');
xlim([x_min x_max])
text(0.95,0.95,'V','Units','normalized','HorizontalAlignment','right','VerticalAlignment','top','BackgroundColor','g','FontWeight','bold','color','w')
% jusqu'ici tout va bien puis...
subplot('Position',[0.05,0.37,0.25,0.25])
col = 1:length(signal(:,1));
surface([signal(:,1)';signal(:,1)'],[signal(:,2)';signal(:,2)'],[zeros(size(signal(:,1)))';zeros(size(signal(:,1)))'],[col;col],...
'facecol','no','edgecol','interp','linew',2);
% les 3 premiers subplot se crashent après celui-ci. |
Partager