Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
x = 'Morse code is FUN!';
y_correct = '-- --- .-. ... . -.-. --- -.. . .. ... ..-. ..- -. -.-.--';
assert(isequal(MorseCodeGenerator(x),y_correct))
|
2 | Fail |
x = 'Am I 20, (who knows?)';
y_correct = '.- -- .. ..--- ----- --..-- -.--. .-- .... --- -.- -. --- .-- ... ..--.. -.--.-';
assert(isequal(MorseCodeGenerator(x),y_correct))
|
3 | Fail |
x = 'THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG: or does he...';
y_correct = '- .... . --.- ..- .. -.-. -.- -... .-. --- .-- -. ..-. --- -..- .--- ..- -- .--. ... --- ...- . .-. - .... . .-.. .- --.. -.-- -.. --- --. ---... --- .-. -.. --- . ... .... . .-.-.- .-.-.- .-.-.-';
assert(isequal(MorseCodeGenerator(x),y_correct))
|
4 | Fail |
x = '1234567890';
y_correct = '.---- ..--- ...-- ....- ..... -.... --... ---.. ----. -----';
assert(isequal(MorseCodeGenerator(x),y_correct))
|
785 Solvers
Find common elements in matrix rows
1232 Solvers
Who knows the last digit of pi?
557 Solvers
434 Solvers
Getting the absolute index from a matrix
211 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!