Clear Filters
Clear Filters

Unable to produce a figure. Just comes up blank

4 views (last 30 days)
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

Answers (0)

Categories

Find more on Graphics Object Identification in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!