Effacer les filtres
Effacer les filtres

Unable to produce a figure. Just comes up blank

5 vues (au cours des 30 derniers jours)
Pol Medir
Pol Medir le 5 Avr 2021
Modifié(e) : Pol Medir le 6 Avr 2021
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
  1 commentaire
Mathieu NOE
Mathieu NOE le 6 Avr 2021
hello
maybe if you attach a data file we can better help you

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Graphics Object Identification dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by