Question: please help me with this code, idk what im doing wrong. its for matlab Text message expander Write a function called ExpandMessage that receives an

please help me with this code, idk what im doing wrong. itsfor matlab Text message expander Write a function called ExpandMessage that receivesplease help me with this code, idk what im doing wrong. its for matlab

Text message expander Write a function called ExpandMessage that receives an input phrase that contains text message abbreviations. The function should return a phrase in which all the text messages abbreviations have been expanded. Both the input and output should be a string scalar. The input phrase could be any length. The following abbreviations should be supported .LOL laughing out loud IDK I don't know BFF -best friends forever . IMHO - in my humble opinion TMI - too much information TTYL-- talk to you later Restrictions: The internal function replace should be used Ex userString- "IDK how that happened. TTYL. decodedString ExpandMessage userString) produces "I don't know how that happened. talk to you later." Your Function Save C Reset EE MATLAB Documentation 1 function decodedSt ring = ExpandMessage( userst ring ) 2 userString- replace(userString, 'LOL', 'laughing out loud) 3userString- replace(userString, 'IDK', 'I don'"t know'); 4 userString- replace(userString, BFF,' best friends forever) 5 userString- replace(userString, 'IMHO', 'in my humble opinion) 6 userString- replace (userString, 'TMI, 'too much information'); 7 userString- replace(userString, 'TTYL', 'talk to you later') 8 decodedString- userString; 9 10 end Code to call your function Reset

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!