Question: Function Description: Given a character vector containing a message, follow these steps in the correct order to decipher it: 1. Starting with the first index

Function Description:

Given a character vector containing a message, follow these steps in the correct order

to decipher it:

1. Starting with the first index of the char vector, shift every third index up 2 ASCII

values (for example, 'q' 's' )

2. Replace all underscores '_' with a single space

3. Capitalize the first letter of every word in the sentence

Example:

mixed = 'qalr_tfe_uatcr_`efmre]boglilg_gt'

fixed = mealPrep(mixed)

fixed 'Salt The Water Before Boiling It'

Please help me on this question. Solve using MATLAB. Do not use conditional statements or Iterations on this problem to receive a thumbs up!! All the information is given!

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!