I don't know, what I do wrong?:'(

10 views (last 30 days)
Sascha
Sascha on 28 Dec 2011
Hello Helpers,
I don't know what to do. Everytime I try to use funktion: slove, this errordialog appeer.
EDU>> clear all
EDU>> slove('x+2=3')
??? Undefined function or method 'slove' for input arguments of type 'char'.
May you can help me find a way... I guessed: I have not the symbolic toolbox, but I found it in C:\Program Files\MATLAB\R2010a Student\toolbox\symbolic
Backgroundinformation: I need to slove equations like this:
v=13,5 m/s (v is the speed of an shooted object)
h=1,70 m (h is the distance to the ground)
g=9,81 m/s^2 (-g is th increas in speed in direction ground)
sy(t) is the actuall distance to the ground
sx(t) is the distance in x direction
I search for sxmax and the best angle of q
sy= v * sin(q) * t + (-g/2)t^2 + h
0= v * sin(q) * tmax + (-g/2)tmax^2 + h
0= tmax^2 + (-2*v*sin(q)/g * tmax + (-2*h/g)
tmax= (v*sin(q)/g)+((v*sin(q)/g)^2+(2*h/g))^(1/2)
(p-q-formula taken without - as opinion cause tmax > 0)
sx= v * cos(q) * t
sxmax= v * cos(q) * tmax
sxmax= v * cos(q) * (v*sin(q)/g)+((v*sin(q)/g)^2+(2*h/g))^(1/2)
diff(sxmax)=0
0=diff( sxmax= v * cos(q) * (v*sin(q)/g)+((v*sin(q)/g)^2+
(2*h/g))^(1/2) )
soo... now I should get q, but I need to get the formula, and not a numeric result.. may you say me a way
sorry for my english, and thanks for reading and may helping

Accepted Answer

Honglei Chen
Honglei Chen on 28 Dec 2011
You typed slove and it should be solve

More Answers (1)

Sascha
Sascha on 28 Dec 2011
-.-
that can't be I wrote it 100 times it can't be 100 the same misstake..., but thanks may it is... I will try it again. If it does not work I will ask again. Now I accept your answer for now

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!