how can i convert mxArray to double in simulink?

i am gettting following error.
Expected either a logical, char, int, fi, single, or double. Found an mxArray. MxArrays are returned from calls to the MATLAB interpreter and are not supported inside expressions. They may only be used on the right-hand side of assignments and as arguments to extrinsic functions.
can anyone help me to fix it?

답변 (1개)

Martin Oehler
Martin Oehler 2019년 3월 19일

1 개 추천

Try to define the value first. Then, make the call which returns the MxArray.
See https://de.mathworks.com/matlabcentral/answers/354444-is-there-anybody-to-help-me-fix-the-error-and-convert-mxarray-to-double

카테고리

도움말 센터File Exchange에서 Logical에 대해 자세히 알아보기

태그

질문:

2019년 3월 11일

답변:

2019년 3월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by