Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x=0:0.01:1;
y=@(x)x.^2
z_correct = 0.3334
assert(abs(integralx2(x,y)-z_correct)<0.001)
y =
function_handle with value:
@(x)x.^2
z_correct =
0.3334
|
2 | Pass |
x=0:0.01:1;
y=@(x)x.^3
z_correct = 0.25
assert(abs(integralx2(x,y)-z_correct)<0.001)
y =
function_handle with value:
@(x)x.^3
z_correct =
0.2500
|
Determine whether a vector is monotonically increasing
11918 Solvers
280 Solvers
413 Solvers
321 Solvers
Back to basics - mean of corner elements of a matrix
297 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!