-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlfp_fig_pd.m
32 lines (27 loc) · 993 Bytes
/
lfp_fig_pd.m
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
31
32
function figg=lfp_fig_pd(LFP,LFP_fil,f0,p0,f1,p1,dt,tVec)
figg=figure('units','normalized','outerposition',[0 0 1 1]) ;
% figg.OuterPosition=[0 250 2030 300];
ax1=subplot(3,2,[1,2]); title('Raw LFP'); hold on
plot(dt*tVec(1:length(LFP)),LFP,'LineWidth',1); zoom xon;
xlim([0 dt*length(LFP)])
set(gca,'FontSize',12,'FontWeight','bold')
ax2=subplot(3,2,[3,4]); title('LFP, \beta filterred'); hold on
plot(dt*tVec(1:length(LFP)),LFP_fil,'LineWidth',1)
xlabel('Time (ms)');
set(gca,'FontSize',12,'FontWeight','bold')
xlim([0 dt*length(LFP)])
linkaxes([ax1,ax2],'x')
ax3=subplot(3,2,5); title('Not filterred'); hold on
plot(f0,p0,'Linewidth',1);
xlim([0 200]);
xlabel('Frequency (Hz)')
% ylim([0 .001])
ylabel('Power')
set(gca,'FontSize',12,'FontWeight','bold')
ax4=subplot(3,2,6); title('\beta filterred'); hold on
plot(f1,p1,'Linewidth',1);
xlim([0 200]);
xlabel('Frequency (Hz)')
% ylim([0 .25])
%ylim([-3 1])
set(gca,'FontSize',12,'FontWeight','bold')