This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
%%
x = 'MATLAB is good';
y_correct = '--.--.-...--... ..... --.-------..';
assert(isequal(morseCoder(x),y_correct))
Error: Assertion failed.
|
2 | Fail |
%%
x = 'The quick brown fox jumps over the lazy dog';
y_correct = '-..... --.-..-..-.-.-.- -....-.---.---. ..-.----..- .---..---.--.... ---...-..-. -..... .-...---..-.-- -..-----.';
assert(isequal(morseCoder(x),y_correct))
Error: Assertion failed.
|
3 | Fail |
%%
x = '01234567890 is a pallindrome';
y_correct = '-----.----..---...--....-.....-....--...---..----.----- ..... .- .--..-.-...-....-.-...-.-----.';
assert(isequal(morseCoder(x),y_correct))
Error: Assertion failed.
|
Project Euler: Problem 6, Natural numbers, squares and sums.
782 Solvers
middleAsColumn: Return all but first and last element as a column vector
308 Solvers
Saving MATLAB session to a file
116 Solvers
find the maximum element of the matrix
254 Solvers
poll: would you like the regexp (?@cmd) functionality to be banned in Cody?
147 Solvers