Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Error after complied using solve

조회 수: 1 (최근 30일)
Kartavya
Kartavya 2014년 5월 15일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi I have a section of a code that is:
syms m;
sol=solve(xf==m*(1-sqrt(m/3)),m);
m = double(real(sol(2)));
which for xf = 0.15 gives m = 0.202681978192385
however, when I compile the program, the call back function won't work with that code. I have replaced it with predefined value of m = 0.20 and it runs perfectly fine.
Is there anything I can do to solve for m without any errors.
Here is the actual function I'm trying to solve. x=m(1-sqrt(m/3)); solve for m and use the lower value to save in variable. m

답변 (1개)

Walter Roberson
Walter Roberson 2014년 5월 15일
solve() cannot be compiled using MATLAB Compiler or MATLAB Coder.
  댓글 수: 1
Kartavya
Kartavya 2014년 5월 15일
any alternative function i can use?

이 질문은 마감되었습니다.

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by