Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x = 0:pi/10:2*pi;
y = sin(x);
z_correct = 1;
assert(isequal(find_max(x, y),z_correct))
ans =
1
|
2 | Pass |
%%
x = 0:pi/10:2*pi;
y = sqrt(x);
z_correct = sqrt(2*pi);
assert(isequal(find_max(x, y),z_correct))
ans =
2.5066
|
3 | Pass |
%%
x = -10:1:0;
y = x.*x;
z_correct = 100;
assert(isequal(find_max(x, y),z_correct))
ans =
100
|
Return the largest number that is adjacent to a zero
3749 Solvers
312 Solvers
584 Solvers
07 - Common functions and indexing 3
317 Solvers
Matlab Basics II - Max & Index of Max
188 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!