Hi, I got a matrix n by n of a symbolic value a. And I want to change the value of a based on the matrix indices.
syms an=50;z=ones(n)*a;for i=1:1:nfor j=1:1:nif j=1 or j=i then a=4else a=8
Could you please help? thanks
ifthenmatrix indices
syms an=50;z=ones(n)*a;for i=1:1:nfor j=1:1:nif j=1 or j=i then a=4else a=8
Best Answer