Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 3;
y_correct = 3;
assert(isequal(meanOfPrimes(x),y_correct))
TF =
logical
1
|
2 | Pass |
x = [1 2 3];
y_correct = 2.5;
assert(isequal(meanOfPrimes(x),y_correct))
TF =
1×3 logical array
0 1 1
|
3 | Pass |
x = [3 3; 3 3];
y_correct = 3;
assert(isequal(meanOfPrimes(x),y_correct))
TF =
2×2 logical array
1 1
1 1
|
4 | Pass |
x = [7 3 8 8]';
y_correct = 5;
assert(isequal(meanOfPrimes(x),y_correct))
TF =
4×1 logical array
1
1
0
0
|
Find all elements less than 0 or greater than 10 and replace them with NaN
13051 Solvers
What is the next step in Conway's Life?
639 Solvers
Project Euler: Problem 8, Find largest product in a large string of numbers
315 Solvers
2810 Solvers
302 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!