Error using str2sym (line 213)
Ältere Kommentare anzeigen
Hello!
I receive an error while running the following section:
syms V I R fR L dI Ka I w
str2sym('V == I*(R+fR) + L*dI + Ka*I*w')
I get the error
Error using str2sym (line 213)
Unable to convert string to symbolic expression:
Error: Unexpected MATLAB expression.
After looking inside the error with dbstop if error, I found the variable 'I' is treated as special character. why so?
3 Kommentare
madhan ravi
am 29 Aug. 2018
Would you mind explaining why you want str2sym command when you have already defined the variables using syms command?
Tiasa Ghosh
am 30 Aug. 2018
madhan ravi
am 30 Aug. 2018
Cool good that you found an answer.:)
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Operations on Strings finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!