Question: Please use mathlab Homework 4-Logicals and Masking Function Name: frultDecrypt lon Inputs: 1, (char) A vector of the encrypled message Outputs: 1. (char) A vector
Please use mathlab Homework 4-Logicals and Masking Function Name: frultDecrypt lon Inputs: 1, (char) A vector of the encrypled message Outputs: 1. (char) A vector containing the secret message Background: You have recenty joined the Association of People Promoting the Love and Enjoyment of Fruits (APPLES), an unde ground sociaty dedicated to the love and support of fruis worldwide. As this is a secret organizationany and all informaton regarding ene organizations detais are encrypted using a secret system. You quickly realize that deciphering these messages by hand is rather bothersome, and help you uncover the secrets decide to write a MATLAB function that wi Function Description: Write a funcion that wil take an encrypted message and decipher t by following rules. 1. Remove any nambers, punctuation characters, and spaces 2 Move al uppercase letters to the beginning of the vector, followed by all lowercase etters (while preserving the order of both). 3 Make any remaining characters lowercase 4. Remove any character that comes immediately AFTER one of the character in the word ruit (., and t.If the last letler is one of these characters, you can gnore it Example Input: 'in3nes.pefsewrYFI:1cz)u AVn i0821 Actes > InMtpefurYFIcZun0Rdts (renoves non alphabet characters) MY IZANORAIntpefurcunidts (reorders values based on capitalization) > 'myfizavoraintpefwrcunidts (lowercase al1 values) Output:'nyfavoritefruit Notes: Folow the order given above. Note above how '1 and '2 were both removed because each follows a loter of frur The deletions can be consecutive
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
