I was given the following MATLAB code to define a 243x243 matrix. Could someone translante this into pseudo code/c/english?end
THanks
A = [10,-1,0;-1,2,-1;0,-1,1];
for i=1:4
Z = zeros(size(A));
A = [A, A/3, Z ; A/3, A, A/3; Z, A/3, A];
Printable View
I was given the following MATLAB code to define a 243x243 matrix. Could someone translante this into pseudo code/c/english?end
THanks
A = [10,-1,0;-1,2,-1;0,-1,1];
for i=1:4
Z = zeros(size(A));
A = [A, A/3, Z ; A/3, A, A/3; Z, A/3, A];