Community Profile

photo

Milad Mehrnia


Last seen: 1 year ago Active since 2021

Followers: 0   Following: 0

Statistics

All
  • Knowledgeable Level 1
  • Solver
  • First Answer

View badges

Feeds

View by

Answered
I want to write a function that calculate the voltage for three junctions A,B and C in the picture below if we know the voltage of V. (G=0V). Did anyone write it before?
function ans = voltage(V,R) E1 = [R(2)*R(7)+R(1)*R(2)+R(1)*R(7) -R(1)*R(2) 0] E2 = [-R(3)*R(8)*R(4) R(4)*R(8)*R(7)+R(3)*R(8)*R...

2 years ago | 0

| accepted

Answered
text file I/O
function charnum = char_counter(fname,c) fid = fopen(fname,'rt'); charnum = 0; if ~ischar(c) charnum = -1; elseif fid <...

2 years ago | 0

Answered
sparse2matrix random error
function matrix = sparse2matrix(c) % c = cellvec matrix = ones(c{1}).*c{2}; for i = 3:length(c) p = c{i}(1:2); ...

2 years ago | 0