Abbreviate the given string. Consider Only Capital Letters.
If input is 'Abbreviation of The Given String' then output should be 'A T G S '.
Note: There should be a space at the end of the abbreviated word.
In the swecond test case, you have:
x ='The Propose is to Make ABBREBIATION';
y_correct = 'T P M A ';
Are "is" and "to" to be ignored, or should the rule be "Only abbreviate words that begin with capital letters?"
Word Counting and Indexing
2 b | ~ 2 b
Generate a vector like 1,2,2,3,3,3,4,4,4,4
matrix of natural number
Put Two 1D matrices into one 1D matrix
ZigZag matrix with reflected format
Make combination of two given matrices.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office