I'm trying to get the values of n in a column and the value of W a column next to it with titles, am i missing something somewhere?
clear format bank N=input('Please enter a value of n: ');
W = zeros(N,1) ; W(1) = 25 ; for n = 2:N W(n) = (W(n-1) +7) -(7*n/(n-1)) ; end disp(' N Wn ') disp (n),(W)
Best Answer