Does findpeaks work with mat files?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi there
I have a very simple question. Does findpeaks work with matfile variables?
I run the following example below and I don't get any errors but my script doesn't detect any peaks. Essentially nothing happens if I run the following.
EPSCs_PYR_1= load('mytrace2131soma&syns.mat', 'mytrace2131syns');
EPSCs_PYR = mytrace2131syns(:,2);
time=mytrace2131syns(:,1);
findpeaks(EPSCs_PYR,time);
What do I do wrong? Similar scripts have worked in the past if I load .dat or .txt files
thank you!
2 comentarios
Respuestas (2)
Star Strider
el 5 de Jul. de 2019
‘... my script doesn't plot my trace and doesn't detect any peaks ...’
You are overwriting the findpeaks plot.
Try this instead:
figure
findpeaks(EPSCs_PYR,time);
figure
plot(time,EPSCs_PYR);
Both plots should now appear in their respective figure objects.
8 comentarios
Star Strider
el 6 de Jul. de 2019
Please do!
I have no idea what the problem with findpeaks is in your R2017 installation. I never had any problems with it.
Ver también
Categorías
Más información sobre Grid Lines, Tick Values, and Labels en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!