Hi! I am trying to plot a fourier function by using fplot but I am getting the following error.
The following error was reported evaluating the function in FunctionLine update: Unable to convert expression containing symbolic variables into double array.
Apply 'subs' function first to substitute values for variables.
x=@(t)heaviside(exp(-20*t));
h=@(t) heaviside(12.*t.*exp(55*t));
fplot(@(w) abs(hf), [-20*pi 20*pi])
11 Comments
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1218605
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1218605
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1219305
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1219305
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1219475
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1219475
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1219485
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1219485
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1219500
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1219500
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1219535
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1219535
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1219565
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1219565
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1219570
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1219570
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1219575
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1219575
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1219580
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1219580
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1220075
Direct link to this comment
https://ch.mathworks.com/matlabcentral/answers/698380-the-following-error-was-reported-evaluating-the-function-in-functionline-update-unable-to-convert-e#comment_1220075
Sign in to comment.