You are on page 1of 1

8/9/17 9:25 AM D:\CBCS\Matlab Codes\sequence001.

m 1 of 1

% Plotting of Recursive Sequence


clear screen
format long
a(1)=1;
for n=2:50;
a(n)=0.75*(1-a(n-1));
end
plot(a,'r.');
title('Plot of a(n)=0.75*(1-a(n-1)) with a(1)=1') ;

Output:

You might also like