System of equations problem help

2 次查看(过去 30 天)
function output=find_current(a,e,c,d)
V=a;
R1=e;
R2=c;
R3=d;
A=[-1 1 1 0; 0 1 1 -1; R1 0 R3 0; R1 R2 0 0];
b=[0 0 V V]';
output=(A/b);
end
Why is the transpose not working on the b matrix?

采纳的回答

Star Strider
Star Strider 2017-11-11
Guessing here. You may want this instead:
output = A\b;
  2 个评论
Matthew Lozancich
Matthew Lozancich 2017-11-11
OMG..I'm so dumb haha.. thank you..
Star Strider
Star Strider 2017-11-11
As always, my pleasure.
If my Answer helped you solve your problem, please Accept it!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by