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?

 Respuesta aceptada

Star Strider
Star Strider el 11 de Nov. de 2017
Guessing here. You may want this instead:
output = A\b;

2 comentarios

Matthew Lozancich
Matthew Lozancich el 11 de Nov. de 2017
OMG..I'm so dumb haha.. thank you..
Star Strider
Star Strider el 11 de Nov. de 2017
As always, my pleasure.
If my Answer helped you solve your problem, please Accept it!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Mathematics en Centro de ayuda y File Exchange.

Preguntada:

el 11 de Nov. de 2017

Comentada:

el 11 de Nov. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by