Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Error after complied using solve

1 Ansicht (letzte 30 Tage)
Kartavya
Kartavya am 15 Mai 2014
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
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

Antworten (1)

Walter Roberson
Walter Roberson am 15 Mai 2014
solve() cannot be compiled using MATLAB Compiler or MATLAB Coder.
  1 Kommentar
Kartavya
Kartavya am 15 Mai 2014
any alternative function i can use?

Diese Frage ist geschlossen.

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by