Shifting a plot in the horizontal direction
显示 更早的评论
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.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!