Filter löschen
Filter löschen

Problem with Solve command

2 Ansichten (letzte 30 Tage)
Dani D
Dani D am 6 Mär. 2016
Beantwortet: John BG am 8 Mär. 2016
Hello my friends, With matlab 2010 , we can't use this m file , but the same program is fine in matlab 2015.

Antworten (2)

John D'Errico
John D'Errico am 6 Mär. 2016
Bearbeitet: John D'Errico am 6 Mär. 2016
Solve does not come with EVERY copy of MATLAB, but only if you have the symbolic toolbox installed.
Apparently you don't have the symbolic toolbox on that older release, but you do on the new one.
On the command line of your older release, try the ver command. It will tell you which toolboxes are installed.
ver
  3 Kommentare
John D'Errico
John D'Errico am 8 Mär. 2016
Bearbeitet: John D'Errico am 8 Mär. 2016
Your second answer, also moved into a comment:
"I type 'ver' and i see sybmolic math toolbox version 5."
Please stop thinking of Answers as a threaded thing, where you add a new answer every time you want to make a comment.
John D'Errico
John D'Errico am 8 Mär. 2016
So you do have the symbolic toolbox. A careful blowup of the image you posted shows that solve is indeed there. Apparently solve has changed in capability over the years. What you are trying to do is quite difficult to read. Why not post actual text, instead of a fuzzy, unclear, barely readable picture of tiny text?

Melden Sie sich an, um zu kommentieren.


John BG
John BG am 8 Mär. 2016
Hi Dani
I try this
syms x y z
eq3=7*x-8*y-351
eq1=x+2*y+3*z-366
eq2=4*x+5*y+6*z-804
[x0,y0,z0]=solve(eq1,eq2,eq3)
and it gets solved
x0 =
927/23
y0 =
-198/23
z0 =
2629/23
first, really, stop taking screen shots of code with your mobile or camera, and either
  • simply copy and paste code
  • or hit prtcsn button on your keyboard, and crop the image accordingly
second, perhaps it's time to consider upgrading to R2016 or nearby
If you find this answer of any help solving your question, please click on the thumbs-up vote link,
thanks in advance
John

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by