fourier transform of this:
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
HADIMARGO
le 28 Juin 2019
Modifié(e) : HADIMARGO
le 28 Juin 2019
hi this is my shape that i want it's fourier transform
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/226723/image.jpeg)
this is my code:
clc
clear all
t=-3:0.0001:3;
%x=-heaviside(t+2)
%y=t
%z=rectangularPulse(t-1)
%unitstep = t>-1;
%ramp = t.*unitstep;
f= -heaviside(t+2)+ heaviside(t+1)+t.*(t>=-1)-t.*(t>=1)+ heaviside(t-1)-heaviside(t-2)
figure(1)
plot(t,f)
axis([-3,3,-2,2])
FT=fourier(f)
this is error:
Undefined function 'fourier' for input arguments of type 'double'.
Error in Untitled12 (line 19)
FT=fourier(f)
how could i fix this?
the result of my code:
![untitled5.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/226724/untitled5.jpeg)
0 commentaires
Réponse acceptée
KALYAN ACHARJYA
le 28 Juin 2019
Modifié(e) : KALYAN ACHARJYA
le 28 Juin 2019
4 commentaires
KALYAN ACHARJYA
le 28 Juin 2019
Modifié(e) : KALYAN ACHARJYA
le 28 Juin 2019
I dont have Matlab in my Laptop, I will try when I will return to Lab.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Transforms dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!