How do I resolve the error in symbolic computation of Fourier Transform
5 views (last 30 days)
Show older comments
This is the code I am working on:
syms w t
Q_star_hat = fourier(exp(-(t-1)^2),w);
m=fourier(101*(1+exp(-t))*heaviside(t)+2, w);
ufr0star_hat = Q_star_hat/m;
ufr0star = ifourier(ufr0star_hat,t);
fplot(t, ufr0star);
This doesn't give me a plot and instead give me warning and error:
Warning: Error updating ParameterizedFunctionLine.
The following error was reported evaluating the function in FunctionLine update: DOUBLE cannot convert the input
expression into a double array.
How do I resolve it.
1 Comment
Mohd Hesham AlHafez
on 3 Jan 2022
I am facing a similar problem. I have gone through plenty of web pages and found nothing. Was you able to solve the problem or not ??
Answers (1)
Walter Roberson
on 3 Jan 2022
syms w t
Q_star_hat = fourier(exp(-(t-1)^2),w);
m=fourier(101*(1+exp(-t))*heaviside(t)+2, w);
ufr0star_hat = Q_star_hat/m;
ufr0star = ifourier(ufr0star_hat,t);
string(t)
string(ufr0star)
u1 = subs(ufr0star, t, 1)
double(u1)
So what is happening is that your ifourier is giving you back something that does not evaluate to a numeric value when a numeric constant is substituted for t. This is something that cannot be plotted.
0 Comments
See Also
Categories
Find more on Calculus in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!