Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
filetext = fileread('MeanWhile.m');
assert(isempty(strfind(filetext, 'regexp')),'regexp hacks are forbidden')
|
2 | Pass |
filetext = fileread('MeanWhile.m');
assert(isempty(strfind(filetext, 'sum')),'sum() function is forbidden')
|
3 | Pass |
filetext = fileread('MeanWhile.m');
assert(isempty(strfind(filetext, 'mean')),'mean() function is forbidden')
|
4 | Pass |
rng(1);
av_correct = 5.5;
assert(isequal(MeanWhile(),av_correct))
a =
5.5000
|
5 | Pass |
rng(2);
av_correct = 4;
assert(isequal(MeanWhile(),av_correct))
a =
4
|
6 | Pass |
rng(3);
av_correct = 5.25;
assert(isequal(MeanWhile(),av_correct))
a =
5.2500
|
7 | Pass |
rng(7);
av_correct = 0;
assert(isequal(MeanWhile(),av_correct))
|
8 | Pass |
rng(0);
av_correct = 6.571428571428571;
assert(isequal(MeanWhile(),av_correct))
a =
6.5714
|
Calculate distance travelled when given radius and rotations
183 Solvers
273 Solvers
What is Sum Of all elements of Matrix
292 Solvers
Determine the length of a string of characters
171 Solvers
241 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!