I am learning Matlab and i am always getting the error "Undefined function 'solve' for input arguments of type 'char'." when i try to solve an equation. How do i solve it?
이전 댓글 표시
solve('v-u-3*t^2=0', 'v'); Undefined function 'solve' for input arguments of type 'char'.
답변 (1개)
Brendan Hamm
2015년 8월 12일
It looks like you are trying to use the symbolic math toolbox, in which case you need to make these variables symbolic:
syms v u t
>> solve(v-u-3*t^2 == 0,v)
ans =
3*t^2 + u
댓글 수: 3
SUMAN ADHIKARI
2015년 8월 12일
Brendan Hamm
2015년 8월 12일
This likely means you do not have the symbolic toolbox. You can check by typing:
ver
This will display a list of all of the toolboxes and versions of MathWorks Products.
SUMAN ADHIKARI
2015년 8월 12일
카테고리
도움말 센터 및 File Exchange에서 Numeric Solvers에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!