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)
|
1327 Solvers
483 Solvers
228 Solvers
Create an n-by-n null matrix and fill with ones certain positions
269 Solvers
218 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!