Problem 565. Transposition as a CIPHER
This all about transcripting a text message. If the input string is: s1 = 'My name is Sourav Mondal', then the output is: s2 = 'MUYRNAAVMMEOINSDSAOL'. Just divide the string from middle, according to no. of alphabets & then take alphabets/letters alternatively from the two strings!!
Solution Stats
Problem Comments
-
6 Comments
Show
3 older comments
Venu Lolla
on 8 Apr 2012
Sourav: The function name and input parameter are incorrect in the test suite.
Ned Gulley
on 9 Apr 2012
I cleaned up the calling syntax in the test.
@bmtran (Bryant Tran)
on 9 Apr 2012
you don't specify what to do when there's an odd number of letters
Sourav Mondal
on 10 Apr 2012
Venu: There is nothing to do with the name & parameter names. Many have submitted the correct solution!
Sourav Mondal
on 10 Apr 2012
@bmtran: u have to be intelligent enough to handle both the even & odd cases!! That's the challenge!
Venu Lolla
on 10 Apr 2012
Sourav: Not any more by the time you made your comment, because Ned Gulley fixed the calling syntax in the test suite - see comment 2.
Solution Comments
Show commentsProblem Recent Solvers213
Suggested Problems
-
2046 Solvers
-
1270 Solvers
-
2476 Solvers
-
571 Solvers
-
Convert a Cell Array into an Array
1713 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!