How to make 'solve' work?

Hello, I have just recently started using Matlab and are still learning the basics. I have tried to solve an equation but the 'solve' tool does not seem to work for me. I've put in the following:
solve(cos(x/50)-1/sqrt(2)==10^-3, x)
And it gives me the error: Undefined function or variable 'x'. How am I meant to make it work?

Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 21 Dez. 2014

0 Stimmen

solve('cos(x/50)-1/sqrt(2)==10^(-3)')

6 Kommentare

Marcus
Marcus am 21 Dez. 2014
I'm getting the error: Undefined function 'solve' for input arguments of type 'char'. Is there a problem with my version of Matlab maybe?
Azzi Abdelmalek
Azzi Abdelmalek am 21 Dez. 2014
Try this
syms x
solve(cos(x/50)-1/sqrt(2)==10^(-3))
Azzi Abdelmalek
Azzi Abdelmalek am 21 Dez. 2014
Try this
syms x
solve(cos(x/50)-1/sqrt(2)==10^(-3))
Azzi Abdelmalek
Azzi Abdelmalek am 21 Dez. 2014
Try this
syms x
solve(cos(x/50)-1/sqrt(2)==10^(-3))
Marcus
Marcus am 21 Dez. 2014
I get the error: Undefined function 'syms' for input arguments of type 'char'. I am using the student version but I was sure I would still be able to use such basic features?
Marcus
Marcus am 21 Dez. 2014
I found the error, I apparently didn't have the Symbolic Math Toolbox installed.

Melden Sie sich an, um zu kommentieren.

Tags

Gefragt:

am 21 Dez. 2014

Kommentiert:

am 21 Dez. 2014

Community Treasure Hunt

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

Start Hunting!

Translated by