with the new version the correct way would be the expression [x y] = solve(3*x-y == 2 , x + y== 1 , x , y) th quotes are removed and it has to be told what it is solving for
@all, I am facing error while solving system of quadratic equations symbolically. Following the example in this video, I tried this one >> [x,y,z]=solve('c*x-2y=1','2*y-cz=2','c*z-x+y=3') But I got the Error message like, ??? Error using ==> solve at 77 ' c*x-2y=1 ' is not a valid expression or equation. I want to know what is wrong with this... Thank you in advance.
for everyone who are getting the errors, we dont need to put the apostrophes anymore so instead of solve('eqn',x) its solve(eqn,x)
hope this helps
Thanks buddy :)
I watched almost all the videos of this playlist. It helped me a lot. Thanks a lot sir
If you want to get result with constant c, just define it as a variable (syms x y c) but solve only for x and y.
I have an issue with matlab 2018 line 226 and line 418. Do you know what's wrong?
with the new version the correct way would be the expression
[x y] = solve(3*x-y == 2 , x + y== 1 , x , y)
th quotes are removed and it has to be told what it is solving for
@@ryanward8117 it helped, thank you very much!
Great! Thanks a lot!
@all, I am facing error while solving system of quadratic equations symbolically. Following the example in this video, I tried this one
>> [x,y,z]=solve('c*x-2y=1','2*y-cz=2','c*z-x+y=3')
But I got the Error message like,
??? Error using ==> solve at 77
' c*x-2y=1 ' is not a valid expression or equation.
I want to know what is wrong with this...
Thank you in advance.
I believe the command "pretty" just does not do what it should...
thanks alot bro
Thanks man!!
what about z value
Both below solutions are not working. Can someone help please:
solution=(3*x-y==2,x+y==1)
solution=(3*x-y==2,x+y==1,x,y)