Skip to content

Instantly share code, notes, and snippets.

@HectorTorres
Created February 1, 2018 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HectorTorres/5849030e0bc906fd70daf836e3902ec8 to your computer and use it in GitHub Desktop.
Save HectorTorres/5849030e0bc906fd70daf836e3902ec8 to your computer and use it in GitHub Desktop.
clc
clear all
syms I1 I2
eqn1 = I1*(10+0.1i)-I2*(10i) == 10;
eqn2 = -I1*(10i)+I2*(1000+1i) == 0;
[A,B] = equationsToMatrix([eqn1, eqn2], [I1, I2]);
X = linsolve(A,B)
%
% RESULTADO
% X =
%
% 10100010000/10202008001 - 99900100i/10202008001
% 1100000/10202008001 + 100999000i/10202008001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment