Solve function
2 views (last 30 days)
Show older comments
Hi Everyone,
I need to find the value of xgaris1
dis1=1.5;
newx=3;
newy=2;
xgaris1= solve('dis1^2=abs(sqrt(xgaris1-newx)^2+((3-xgaris1)-newy)^2)');
but the output of xgaris1 always didn't calculate the numeric value of dis1, newx, and newy as seen below: xgaris1 = (4*dis1^2 + 4*newx + 4*newy - 11)^(1/2)/2 - newy + 5/2 5/2 - (4*dis1^2 + 4*newx + 4*newy - 11)^(1/2)/2 - newy
For any reply, will very appreciate.
Thanks in advance, Lina
0 Comments
Accepted Answer
Walter Roberson
on 18 May 2012
Convert solve('A=B') to solve((A)-(B)) with no quotes. But
syms xgaris1
first.
More Answers (0)
See Also
Categories
Find more on Special Values 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!