How to solve 3 equations with 3 unknowns using 'for' loop?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Denis Chin
am 16 Jul. 2014
Kommentiert: Denis Chin
am 16 Jul. 2014
Here is my 3 equation:
y=(4+2x-3z)/5
x=(3-2y-z)/4
z=(13+y-2x)/4
I have to use 'for' loop and perform 30 iterations, how can I do that in matlab? Can someone please help me?
1 Kommentar
Jasmine
am 16 Jul. 2014
If you simply need to know how to use a for loop thirty times, use a variable called count.
count = 1;
for count = 1:30
[your code]
end
Or are you asking how to solve the simultaneous equations?
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Loops and Conditional Statements 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!