% Here N = 10 ; poly =[5 8 0]
for i = 1:N-1; A = sum(poly); B = mod(A,N); endi = i + 1;
But the end result shows the value for i = 1 (i.e. A=13, B = 3) only. I need to display A & B for i = 1 to 9
for loopmod
% Here N = 10 ; poly =[5 8 0]
for i = 1:N-1; A = sum(poly); B = mod(A,N); endi = i + 1;
Best Answer