Problem 1686. Generate a melodic contour string matrix
Solution Stats
Problem Comments
-
5 Comments
There is an error in the second problem of the test suite (also in the example) with an extra "[" on the second line of the "correct" melody.
Amazing how hard it is to get your test suite right on the first try. Thanks, and it looks like you're in the lead!
The last 3 tests are incorrect.
Dimensions of matrices being concatenated are not consistent.
I admit they look wrong, but the actual text in the MATLAB code runs properly. I just re-scored some answers and they worked fine. It must be some kind of HTML display problem. I'll check into it.
Problem Recent Solvers43
Suggested Problems
-
Extract leading non-zero digit
1578 Solvers
-
Test if a Number is a Palindrome without using any String Operations
194 Solvers
-
Get the elements of diagonal and antidiagonal for any m-by-n matrix
369 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
336 Solvers
-
336 Solvers
More from this Author50
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!