Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
for idx = 5:50
x = idx;
Series = meanEqualsStd(x);
mSeries = mean(Series);
sSeries = std(Series,1);
assert(length(Series)==x);
assert(round(mSeries)==mSeries);
assert(round(sSeries)==sSeries);
assert(all(round(Series) == Series));
assert(all(round(Series) >= 1));
assert(mSeries == sSeries);
end
|
2 | Pass |
filetext = fileread('meanEqualsStd.m');
assert(isempty(strfind(filetext, 'echo')))
assert(isempty(strfind(filetext, 'assert')))
|
647 Solvers
332 Solvers
How to find the position of an element in a vector without using the find function
2320 Solvers
Project Euler: Problem 7, Nth prime
339 Solvers
Find the sum of the elements in the "second" diagonal
879 Solvers