Recent content by qizzlestick

  1. Q

    MATLAB Bizarre result of the sum() function in MATLAB

    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...
  2. Q

    How to replace zeros in a matrix by elements of an array in Matlab?

    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
  3. Q

    Independent current and voltage network analysis

    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...
Back
Top