Hi Gnelli,
Thanks for your response. Yeah I think your right but I find it strange that the circuit would run in the simulator when it is indeed two current sources in parallel. But is it really in parallel if they are separated by resistors? I have redrawn the circuit and have tried to use MATLAB again by modifying the circuit to remove one of the current sources and to have the only ground in the circuit be the one at the other end of the current source. MATLAB still doesn't seem to like it =(. I don't see what I'm doing wrong. Thanks for any help.
Equations on modified circuit
putting my equations into MATLAB provides with the following answer as well as a warning that the matrix is singular
MATLAB commands
>> N=[-1,1,0,0,0,0;0,-1,0,1,0,0;-1,0,1,0,0,0;0,0,1,-1,0,0;0,0,-1,0,1,0;0,0,0,0,-1,1];
>> R=[1,0,0,0,0,0;0,2,0,0,0,0;0,0,3,0,0,0;0,0,0,4,0,0;0,0,0,0,5,0;0,0,0,0,0,6];
>> A=[0,0,0,0,0,0;0,0,0,0,0,0;0,0,0,0,0,0;0,0,0,0,0,0;0,0,0,0,0,0;0,0,0,0,0,0];
>> E=[0;0;0;0;0;5];
>> I=[0;0;0;0;3;0];
>> inv([R,N;N',A])*[I;E]
Warning: Matrix is close to singular or badly
scaled. Results may be inaccurate. RCOND =
2.312965e-18. ans =
1.0e+16 *
0
0
0
0
0.0000
0.0000
4.5036
4.5036
4.5036
4.5036
4.5036
4.5036
and when I try to take the determinant of the matrix [R,N;N',A] I get
-1.1102e-15
which may be to close to zero and very close to singular causing the error that I'm getting in MATLAB.
When I check the values in my simulator it tells me this time that it's unable to get the solution but I'm not sure what's wrong with my circuit. Thanks for any help!