R1=5;R2=100;R3=200;R4=150;R5=250;v1=100;v2=50;v3=0;eq1='(R1+R4)*i1-R4*i2=v1';eq2='-(R4)*i1+(R2+R4+R5)*i2-(R5*i3)=v3';eq3='R5*i2-(R3+R5)*i3=v2';[i1,i2,i3]=solve(eq1,eq2,eq3)
MATLAB: When I run script it doesn’t read the “R” or “V” variables it reads as is
solvesyms
Best Answer
Invoking the Symbolic Math Toolbox first, with the syms call, helps significantluy: