Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribedplease 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions