This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
x = 1;
y_correct = 1;
assert(isequal(your_fcn_name(x),y_correct))
x = 15;
y_correct = 1240;
assert(isequal(your_fcn_name(x),y_correct))
x = 50;
y_correct = 42925;
assert(isequal(your_fcn_name(x),y_correct))
y =
0
|
Back to basics 23 - Triangular matrix
532 Solvers
The Answer to Life, the Universe, and Everything
312 Solvers
07 - Common functions and indexing 5
255 Solvers
Matlab Basics - y as a function of x
242 Solvers
243 Solvers