The code is look like
for k=1:40 (k only forloop for the number of iterations & must be used)
some operations
sp= output values in between 0 and 1
sn= output values in between 0 and 1
plot (sn,sp);
axis([0 1 0 1]);
hold on
end
hold off;
The outpot is looked like, I want to draw the curve from 0,0 to 1,1 through all points(in between averaging)
Best Answer