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!