I need to plot the below equation with "S" as a function of n. The code I wrote (below) isnt working so I assume that i have some sort of syntax issue ?
NN = [0:1:10];for i = 1:length(NN) S(i) = S(i) + (1/(2^NN(i))); NN(i) = NN(i) +1; endplot(NN,S,'k-')
Best Answer