How to plot ?(?) = ?? ?(0) for n=1-30 and x(0)=100?? I have tried this code, but it is repeating it's value again and again… What I am missing?
alpha = 2x0 = 100; % Initial conditions
for n = 1:30 x(n) = (alpha^n)*(x0)enddisp(x(n))
MATLABn values of x
alpha = 2x0 = 100; % Initial conditions
for n = 1:30 x(n) = (alpha^n)*(x0)enddisp(x(n))
Best Answer