Error using plot ; spectrum of function
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
geometry geometry
am 1 Nov. 2017
Kommentiert: geometry geometry
am 2 Nov. 2017
Why I get error using the following code?
syms t w;
syms g h;
g=fourier(exp(-1*(t^2)));
h=abs(g);
w=-10.1:10.1;
plot(w,h);
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 1 Nov. 2017
plot(w, subs(h))
3 Kommentare
Walter Roberson
am 1 Nov. 2017
Worked fine when I tried on the code you posted.
If you have other code for calculating spectra then you should probably post that so we do not have to guess about what might not be working.
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Calculus finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!