Page 1 of 1

MATLAB?? Consider the sequence 1,32,1712,… Defined by x1=1, xi=12xi-1+2xi-1for i=2,3,4,...,N The sequence converges on 2

Posted: Thu May 26, 2022 9:37 am
by answerhappygod
MATLAB??
Consider the sequence
1,32,1712,…
Defined by
x1=1,
xi=12xi-1+2xi-1for
i=2,3,4,...,N
The sequence converges on
2 as N
increase.
Write a function named SeqToSqrt2 that
accepts a signal input variable N that will be an integer. Add
commands to the function to do the following and assign the results
to the indicated output variables names.
e=2-xy2
Your solution to this problem should
use a for loop.
Not the value of the variable
N (StdID) is defined
as an input to the function. Do not overwrite this value in your
code. Be sure to assign a value of the output variables.