eeglab的PLOT

ref

ref2

ref3

如果你知道了eeglab plot的逻辑,那么把数据提取出来,在matlab中做个波形图,做个频谱图,肯定没问题,可以装下X。其实eeglab中作图的函数似乎更好用,省去了什么把轴反向,设定x轴,标注baseline等一系列的麻烦事为什么不用现成的呢。。

波形图

自己的函数 (只可以看的水平)

Fnorm=12/(512/2)
df=designfilt('lowpassfir','FilterOrder',15,'CutoffFrequency',Fnorm)
for chan=32
% chan_label=chaninfo(chan).labels;

x=1:1126;
 x1=m101(chan,x)
 x2=m102(chan,x)
 x3=m103(chan,x)
 xx = 0:1:1125;
xx1 = filter(df,x1)
xx2= filter(df,x2)
xx3= filter(df,x3)
figure
plot(xx,xx1,'g',xx,xx2,'r',xx,xx3,'b');
hline(0,'b-')
vline(102,'b-')
 legend('green cue','red cue','blue cue')
 title(chanlocs(chan).labels)
 ylim([-10,30])
set(gca,'YDir','reverse')   
set(gca,'xtick',[0:51:1126],'xticklabel',[-200:100:2000])
end

eeglab 函数

plotdata()

只能画两列,可以显示label,可以画多个条件下的波形。但是个人认为不如plottopo好用,所以没必要纠结这个函数

plotdata(m101) %增加任何参数都要报错。。

plottopo()

可以画成地形图的形状,比较直观,可以点开看大图可以,还可以加入多个条件值得,深入研究。

比如:

plottopo(m101,'limits',[-200,2000,-5,5],'chanlocs',chanlocs,'ydir',-1,'hori',[0])然而如何画多个条件,加图例,加sig区域显示呢?需要查看

pop_comperp.m文件

line 365

timtopo(m101,chanlocs,'limits',[-200,2000,0,0],'plotchans',[1:32],'plottimes',[300,600,800],'title','my plot1')

Last updated

Was this helpful?