One of the simplest ways to hide a message involves utilizing uppercase letters.
Given a text, collect all uppercase letters into a single word, maintaining their order of appearance in the text. For instance:
text = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec odio. Praesent libero.'
By gathering all the uppercase letters, the hidden message becomes "LIP".
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers16
Suggested Problems
-
9187 Solvers
-
Arrange Vector in descending order
14062 Solvers
-
411 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
14355 Solvers
-
Detect a number and replace with two NaN's
200 Solvers
More from this Author53
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Test 7 should use uppercase_indices=unique(...) instead of sort(...) .
Yes, you are absolutely right. Thank you for pointing that out.