Vector equation with two unknowns
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Karl Persson
am 5 Dez. 2018
Bearbeitet: madhan ravi
am 5 Dez. 2018
Hi!
I am new to matlab and have this problem:
[ -1 0 0 ]*V == [ 0 -1/3 0 ] + [ -4 4 0 ]*W
How do I code this to find V and W?
0 Kommentare
Akzeptierte Antwort
madhan ravi
am 5 Dez. 2018
Bearbeitet: madhan ravi
am 5 Dez. 2018
Read about solve() and vpasolve()
syms V W
[V,W]=solve([ -1 0 0 ]*V == [ 0 -1/3 0 ] + [ -4 4 0 ]*W,V,W)
Command window:
>> COMMUNITY
V =
1/3
W =
1/12
>>
0 Kommentare
Weitere Antworten (1)
John D'Errico
am 5 Dez. 2018
syms V W
VW = solve([ -1 0 0 ]*V == [ 0 -1/3 0 ] + [ -4 4 0 ]*W)
VW =
struct with fields:
V: [1×1 sym]
W: [1×1 sym]
>> VW.V
ans =
1/3
>> VW.W
ans =
1/12
0 Kommentare
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox 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!