Is there an easy way to create an acronym from a string in MATLAB? For example:
'Superior Temporal Gyrus' => 'STG'
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want to put every capital letter into an abbreviation…
… you could use the function REGEXP:
… or you could use the functions UPPER and ISSPACE:
… or you could instead make use of the ASCII/UNICODE values for capital letters:
If you want to put every letter that starts a word into an abbreviation…
… you could use the function REGEXP:
… or you could use the functions STRTRIM, FIND, and ISSPACE:
… or you could modify the above using logical indexing to avoid the call to FIND:
If you want to put every capital letter that starts a word into an abbreviation…
… you can use the function REGEXP: