Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
f = @(x,y) 2*x+y;
g = reverseArguments(f);
assert(isequal(g(5,6), 17));
assert(isequal(g(6,5), 16));
|
2 | Pass |
%%
f = @(x,y) x.^y;
g = reverseArguments(f);
assert(isequal(g(2,3), 9));
|
3 | Pass |
%%
f = @(A,theta) A*sin(theta);
g = reverseArguments(f);
assert(isequal(g(4,10), 10*sin(4)));
|
9831 Solvers
3967 Solvers
Omit columns averages from a matrix
527 Solvers
middleAsColumn: Return all but first and last element as a column vector
387 Solvers
Set some matrix elements to zero
290 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!