Question: PLEASE don't use if,for,while,loops MATLAB please Function Name: suitorCompatibility Inputs: 1. (char) 1x7*N string of chars containing the suitors names 2. (double) 1xN vector containing

PLEASE don't use if,for,while,loops

MATLAB please

Function Name: suitorCompatibility

Inputs:

1. (char) 1x7*N string of chars containing the suitors names

2. (double) 1xN vector containing the suitors matlab skill levels out of 10

Outputs: 1. (char) String announcing the ultimate suitors

Banned Functions: repelem()

Topics: (masking), (strings), (vectors)

Function Description: Given a list of names in no particular order, rearrange the names alphabetically and then get out the three suitors receiving a MATLAB skill level above a 7. The skill levels only match the names once they are in alphabetical order. Once you have the compatible suitors, output the names in the following format: And the ultimate suitors are... !!!

Example:

names = nikita johnny divesh oliver rohini siddhu

skill = [9 8 3 6 10 4]

winners = suitorCompatibility(names, skill)

winners = And the ultimate suitors are... divesh johnny rohini !!!

Notes: All the names will always be 6 letters long and be separated by a single space

There will be an extra space at the end of the names string

There will be only ever by 3 winners each time

Every name will start with a different letter

Hints: The colon operator will be useful to alphabetize the names

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!