Unable to produce a figure. Just comes up blank

5 次查看(过去 30 天)
I'm trying to plot some recordings from some .wcp files. Here is the code I'm trying to use. The code for the the first experiment is working and giving me a figure, but the code for the second experiment just gives me a blank figure with nothing on it. Why is that?
Update**
I managed to getthe figures working, but now I can't seem to define a window to identify the first fEPSP. I've attached the m.file for the code I'm using.
% function to plot recordings
% plot trace of first experiment
smoothfactor = 11;
grey = [0.5,0.5,0.5];
nCh = out(1).channel_no;
figure
for n = 1:nCh
h(n) = subplot(nCh,1,n);
plot(h(n),t,out(1).S{n},'Color',grey);
h(n).XLabel.String = 'time (ms)';
h(n).YLabel.String = out(1).channel_info{n}.unit;
h(n).FontSize = 12;
hold(h(n),'on');
end
% plot trace of second experiment
smoothfactor = 11;
grey = [0.5,0.5,0.5];
nCh = out(2).channel_no;
figure
for n = 2:nCh
h(n) = subplot(nCh,2,n);
plot(h(n),t,out(2).S{n},'Color',grey);
h(n).XLabel.String = 'time (ms)';
h(n).YLabel.String = out(2).channel_info{n}.unit;
h(n).FontSize = 12
hold(h(n),'on');
end

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Graphics Object Identification 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by