Converting from syms to double

n=n+1; d=double(subs(df(m)));
scatter(m,result)
AE1(n)=double(subs(df(m)))-result;
MAE1(n)=mean(abs(double(df(m))-result));
I can't get my df(m) value to convert to a double

回答(1 个)

John D'Errico
John D'Errico 2023-9-28

0 个投票

We don't see what is in that variable. But...
If you cannot convert it to a double, then it is not a number. It has some symbolic unknown inside it. LOOK. Is there some variable in that expression? If there is, then nothing can convert it to a double, because it is not yet a number.

类别

在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息

产品

版本

R2023a

提问:

2023-9-28

Community Treasure Hunt

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

Start Hunting!

Translated by