Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
str = '*rrr';
melody = '*-*-*-*';
assert(strcmp(parsons(str),melody))
|
2 | Pass |
str = '*du';
melody = ['* *'
' \ / '
' * '];
assert(strcmp(parsons(str),melody))
|
3 | Pass |
str = '*ruuddduur';
melody = [' * '
' / \ '
' * * *-*'
' / \ / '
'*-* * * '
' \ / '
' * '];
assert(strcmp(parsons(str),melody))
currRow =
3
currRow =
3
|
4 | Pass |
str = '*rududdrudud';
melody = [' * * '
' / \ / \ '
'*-* * * * * '
' \ / \ / \ '
' *-* * *'];
assert(strcmp(parsons(str),melody))
currRow =
3
|
5 | Pass |
str = '*rururddrdrdrd';
melody = [' *-* '
' / \ '
' *-* * '
' / \ '
'*-* *-* '
' \ '
' *-* '
' \ '
' *-* '
' \ '
' *'];
assert(strcmp(parsons(str),melody))
currRow =
3
currRow =
3
|
Find the sum of all the numbers of the input vector
31946 Solvers
Swap the first and last columns
12409 Solvers
337 Solvers
Matrix indexing with two vectors of indices
485 Solvers
223 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!