Shifting a plot in the horizontal direction
Ältere Kommentare anzeigen
Hello,
I would like to shift my plot horizontaly but here my problems :
First my code :
if true
% %plot of 3 different channels (in the same figure)
figure(3)
%subplot(121)
plot(ERP.bindata(7,:,1),'k');
hold on;
plot(ERP.bindata(10,:,1),'r');
hold on;
plot(ERP.bindata(17,:,1),'b');
title('Fz Cz Pz channel waveforms')
set(gca,'YDir','Reverse') %reversing the Y axis in order to have the negatives values above and the positives values below
axis ([-200,800,-12,12]) %setting of plot's boundary
xlabel('time (ms)')
ylabel('voltage (µV)')
end
I've glanced this subject below, but it didn't help because it gives tipes for plot(x,y) and my isn't configured like this. shift a plot in the vertical direction?
I've tried this :
if true
% plot(ERP.bindata(7,:,1) -200,'k');
plot(-200,ERP.bindata(7,:,1),'k');
end
But when I do this, my I have no plot on the appearing figure. I think it's because the data I've extracted are only ordinate like data but I have approximatively 1000 points for the abscissa.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Annotations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!