Index exceeds matrix dimensions error
Mostrar comentarios más antiguos
hi i was running this simple code,but i got this error,any idea how to fix it?
L = 140; % Length of signal
NFFT = 2^nextpow2(L); % Next power of 2 from length of y
YY = fft(rawdata,NFFT)/L;
((((((((((Index exceeds matrix dimensions.))))))))
Error in Untitled2 (line 11)
YY = fft(rawdata,NFFT)/L;
4 comentarios
Image Analyst
el 10 de Dic. de 2014
Before the YY line, put this and tell us what it says
whos rawdata
NFFT
Is NFFT > the dimensions of rawdata?
mohamad mohamad
el 10 de Dic. de 2014
Star Strider
el 10 de Dic. de 2014
Next step:
In the Command Window, type
which fft -all
after the error.
I get 6 answers, all in: C:\Program Files\MATLAB\.
mohamad mohamad
el 10 de Dic. de 2014
Editada: Star Strider
el 10 de Dic. de 2014
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Numeric Types en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!