function out = MessagesDecode(myString)
switch myString
case "BFF"
out = "best friends forever";
case "BTW"
out = "by the wa";
case "IDK"
out = "I don't know";
case "IMHO"
out = "in my humble opinion";
case "LOL"
out = "laughing out loud";
case "TMI"
out = "too much information";
otherwise
out = "Unknown message";
end
end
MessagesDecode("BFF")
MessagesDecode("ABC")
OUTPUT
Please up vote. I need it very badly right now.
matlab 3. Write a function called MessageDecode that matches an input string scalar to a known...