Error using plot ; spectrum of function

5 views (last 30 days)
Why I get error using the following code?
syms t w;
syms g h;

Accepted Answer

Walter Roberson
Walter Roberson on 1 Nov 2017
plot(w, subs(h))
geometry geometry
geometry geometry on 2 Nov 2017
Yes thanks! I'm sorry it works fine. (I was using fplot instead of plot).

Sign in to comment.

More Answers (1)

Karan Gill
Karan Gill on 1 Nov 2017
Plot symbolic functions by using fplot.
  1 Comment
geometry geometry
geometry geometry on 1 Nov 2017
Thanks but it doesn't plot spectrum of f(t) correctly. I want to plot the spectrum of arbitrary function for example exp(-t^2) , dirac(t), ...
could you help me?

Sign in to comment.


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!