Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
filetext = fileread('your_fcn_name.m');
assert(isempty(strfind(filetext,'eval')))
assert(isempty(strfind(filetext,'echo')))
assert(isempty(strfind(filetext,'switch')))
|
2 | Pass |
assert(isequal(your_fcn_name('Hello world'),5.000))
|
3 | Pass |
assert(isequal(your_fcn_name('The quick brown fox jumps over the lazy dog'),3.889))
|
4 | Pass |
assert(isequal(your_fcn_name('Another one bites the dust'),4.400))
|
5 | Pass |
assert(isequal(your_fcn_name('Antidisestablishmentarianism is the longest nonscientific word in the English language'),7.700))
|
6 | Pass |
assert(isequal(your_fcn_name('I ate pudding'),3.667))
|
7 | Pass |
assert(isequal(your_fcn_name('I hate pudding'),4.000))
|
2486 Solvers
Find the position of first minimum value in an integer array with numbers
116 Solvers
Sum of diagonals elements of a matrix
166 Solvers
171 Solvers
2625 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!