This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = [4 -5 -2 9];
y_correct = [9 2 -5 -4];
assert(isequal(your_fcn_name(x),y_correct))
|
2 | Pass |
%%
x = ones(1,4);
y_correct = [1 -1 1 -1];
assert(isequal(your_fcn_name(x),y_correct))
|
Project Euler: Problem 3, Largest prime factor
379 Solvers
middleAsColumn: Return all but first and last element as a column vector
387 Solvers
Find nearest prime number less than input number
268 Solvers
480 Solvers
485 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!