Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
f{1} = @(x) x;
f{2} = @(x) x^2;
f{3} = @(x) x^3;
x = 1:5;
y_correct = [ 1 2 3 4 5
1 4 9 16 25
1 8 27 64 125];
assert(isequal(arfn(f,x),y_correct))
|
2 | Pass |
%%
f{1} = @(x) 1/x;
f{2} = @(x) x^0.5;
f{3} = @(x) x-4;
x = [4 16 25 100];
y_correct = [0.25 0.0625 0.04 0.01
2 4 5 10
0 12 21 96];
assert(isequal(arfn(f,x),y_correct))
|
Omit columns averages from a matrix
527 Solvers
Back to basics 25 - Valid variable names
293 Solvers
Determine Whether an array is empty
646 Solvers
Volume difference between Ellipsoid and Sphere
96 Solvers
406 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!