Converting from syms to double

조회 수: 2 (최근 30일)
Emily
Emily 2023년 9월 28일
답변: John D'Errico 2023년 9월 28일
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일
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.

카테고리

Help CenterFile Exchange에서 Numbers and Precision에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by