This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%% Test the example
A = 1;
iterations = 4;
y_correct8 = [1 3 7 15 31];
assert(isequal(your_fcn_name(A,iterations),y_correct8))
|
2 | Pass |
%% More ietrations
A = 1;
iterations = 1000;
C= A
for i = 1:iterations
C(i+1) = 2*C(i)+1;
end
assert(isequal(your_fcn_name(A,iterations),C))
C =
1
|
Find common elements in matrix rows
1231 Solvers
329 Solvers
Sum of first n terms of a harmonic progression
257 Solvers
07 - Common functions and indexing 5
314 Solvers
Solving Quadratic Equations (Version 1)
427 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!