Hmmm, hat keiner ne Idee? Gibts keine alternative Lösung zu sym2poly, wie man diese symbolic Variable wieder zu einer double Zahl o.ä. umformen kann? ; (
bei mir kommt auch in R2015a eine Fehlermeldung, so wie du den Code angibst.
Zitat:
Warning: Do not specify equations and variables as character strings. Instead, create symbolic variables with
syms.
> In solve>getEqns (line 455)
In solve (line 227)
>> lambda2 = sym2poly(la2)
Error using symengine (line 59)
DOUBLE cannot convert the input expression into a double array.
If the input expression contains a symbolic variable, use VPA.
Error in sym/double (line 583)
Xstr = mupadmex('symobj::double', S.s, 0);
Error in sym/sym2poly (line 21)
c = double(p);
Folgendes läuft unter R2015a und sollte auch in älteren Versionen klappen:
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum posten Du kannst Dateien in diesem Forum herunterladen
MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.