Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
f1 = @(x)x+1;
f2 = @(x)3*x;
f3 = @sqrt;
h = composeFcn(f1,f2,f3);
assert(isequal(h(9),10));
|
2 | Pass |
f = repmat({@(x)x+1},1,100);
h = composeFcn(f{:});
assert(isequal(h(0),100));
|
3 | Pass |
f = @(x)x;
h = composeFcn(f);
assert(isequal(h(1234),1234));
|
325 Solvers
2810 Solvers
Create a matrix X, where each column is a shifted copy of the vector v
142 Solvers
Detect a number and replace with two NaN's
178 Solvers
483 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!