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?

Answers (1)

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 Comments

Thank you but when I try to create symbolic variable using syms i get the error. syms v Undefined function 'syms' for input arguments of type 'char'. How can i know that I am using symbolic tool box?
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.
I checked it and i dont have symbolic tool box.Thank you for your help

Sign in to comment.

Tags

Asked:

on 12 Aug 2015

Commented:

on 12 Aug 2015

Community Treasure Hunt

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

Start Hunting!