Borrar filtros
Borrar filtros

Unable to produce a figure. Just comes up blank

4 visualizaciones (últimos 30 días)
Pol Medir
Pol Medir el 5 de Abr. de 2021
Editada: Pol Medir el 6 de Abr. de 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 comentario
Mathieu NOE
Mathieu NOE el 6 de Abr. de 2021
hello
maybe if you attach a data file we can better help you

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Graphics Object Identification en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by