Error using str2sym (line 213)
이전 댓글 표시
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
madhan ravi
2018년 8월 29일
Would you mind explaining why you want str2sym command when you have already defined the variables using syms command?
Tiasa Ghosh
2018년 8월 30일
madhan ravi
2018년 8월 30일
Cool good that you found an answer.:)
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Operations on Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!