Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 3;
y_correct = 3;
assert(isequal(meanOfPrimes(x),y_correct))
b =
0 0 3
new =
3
out =
3
|
2 | Pass |
x = [1 2 3];
y_correct = 2.5;
assert(isequal(meanOfPrimes(x),y_correct))
b =
0 2
b =
0 2 3
new =
2
new =
2 3
out =
2.5000
|
3 | Pass |
x = [3 3; 3 3];
y_correct = 3;
assert(isequal(meanOfPrimes(x),y_correct))
b =
0 0 3
b =
0 0 3
b =
0 0 3
b =
0 0 3
new =
3
out =
3
|
4 | Pass |
x = [7 3 8 8]';
y_correct = 5;
assert(isequal(meanOfPrimes(x),y_correct))
b =
0 0 0 0 0 0 7
b =
0 0 3 0 0 0 7
new =
3
new =
3 7
out =
5
|
Make the vector [1 2 3 4 5 6 7 8 9 10]
35547 Solvers
Reverse the Words (not letters) of a String
297 Solvers
First non-zero element in each column
593 Solvers
Cell Counting: How Many Draws?
581 Solvers
393 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!