Mostra commenti meno recenti
When I attempt a Fourier Transform of my data, v, all the values of Y are NaN + NaNi
%v(t)
t=-1.5:0.001:1.5; %time, s
B=1.5*pi; %T
f0=20; %Hz
for i=1:length(t);
v(i)=(B*sin(2*pi*f0*t(i)))/(pi*t(i));
end
plot(t,v);
max(v) %Voltage,V
min(v) %Voltage,V
%Fourier Transform
Y=fft(v)
Any clues as to why this is occurring??
Thanks guys
Risposta accettata
Più risposte (2)
B T
il 3 Mar 2012
2 Commenti
Walter Roberson
il 4 Mar 2012
Do you possibly need to fftshift() to get what you are looking for?
B T
il 4 Mar 2012
B T
il 4 Mar 2012
0 voti
Categorie
Scopri di più su Fourier Analysis and Filtering in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!