Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x1=0;y1=0;x2=10;y2=6
N = 14;
assert(isequal(sqrnbr(x1,y1,x2,y2),N));
y2 =
6
ans =
14
|
2 | Pass |
%%
x1=0;y1=1;x2=10;y2=21
N = 20;
assert(isequal(sqrnbr(x1,y1,x2,y2),N));
y2 =
21
ans =
20
|
3 | Pass |
%%
x1=0;y1=3.5;x2=10;y2=3.5
N = 10;
assert(isequal(sqrnbr(x1,y1,x2,y2),N));
y2 =
3.5000
ans =
10
|
Find all elements less than 0 or greater than 10 and replace them with NaN
13048 Solvers
462 Solvers
331 Solvers
65 Solvers
124 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!