This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
w=0;
for k=1:10^3
w=w+rndpi(1);
end
assert(w<1000)
|
2 | Pass |
w=0;
for k=1:10^3
w=w+rndpi(1)^2;
end
assert(w>10^3)
|
3 | Pass |
w=0;
for k=1:10^3
w=min(w,rndpi(1));
end
assert(w<-pi*0.9)
assert(w>-pi*1.1)
|
Find all elements less than 0 or greater than 10 and replace them with NaN
11627 Solvers
616 Solvers
397 Solvers
14992 Solvers
Reverse the elements of an array
562 Solvers