why are you trying to do this in the command window its easier to do this in a editor. just click the new script icon on the top left next to open project. this error might be because you had another variable name x that's messing with your results you can usually see in the workspace box. when...
you could make a separate variable say num for EA and do this
num=1;
for j=1:N
for i=1:D
if ID(i,j)==1
ID(i,j)=0;
else
ID(i,j)=EA(1,num);
num+=1;
end
end
end
Homework Statement
Theres two current sources and three voltages sources the problem wants to know the power supplied by each current source
Homework Equations
according to the book the problem can be solved using Kirchoffs current law and kirchhoffs voltage law
The answers according...