Question: used matlab Function Name: betyHero Inputs: 1. (char) Comma separated list of 2 superhero movie options to play 2. (char) Comma separated list of your
used matlab
Function Name: betyHero Inputs: 1. (char) Comma separated list of 2 superhero movie options to play 2. (char) Comma separated list of your friends favorite superhero movies 3. (char) Comma separated list of the top 5 superhero movies from Netflx 4. (double) A 5x2 array of stats for the top 5 superhero movies from Outputs: 1. (char) A string describing your final choice of which movie to play Background settle on what It's Friday! You and your friends have a movie night in your dorm. But you all can not t movie to watch that will get everyone excited. You come up with two Marvel movie options, but decide to consult your friends opinion and Netflix movie ratings. With this information, you decide to use MATLAB to figure out which movie to play at your movie night Function Description will have the following three inputs in the following order and format: ovieOption1>,Netflix2>,,,,, friendsMovieN> specific movie and the columns corresponding to either total revenue that year and or the rating, in the following format total revenue rating stats [ 1580880 4.3; 758 3.7 Netflix2 45809 4.9 - Netflix3 788008 2.7; Netflix4 4000 1.5](.Netflix5 You decide on the following set of rules 1. If movie option 1 is in both lists, play movie option 1 2. If movie option 1 is in only the Netflox list, but not the friends list: a. And if movie option 1 has a Netflix rating greater than the average rating of the top 5 movies, play movie option 1 b. If not, play the top rated movie in the Netflix list. 3. If movie option 1 is in only the friends list, but not in the Netlix list if movie option 2 is in the both lists, play movie option 2 b. Otherwise, play movie option 1 4. If movie option 1 is in neither list: a. And movie option 2 is in either list, play movie option 2 b. Otherwise, play the top rated movie in the Netflix list. Your function should output a string in the following format Based on condition would be a great choice! The is a number, 1-4, depending on the conditions specified in the rules above Notes: There will be only single commas dividing movie names. All movie ratings will be positive numbers. There can be any number of movies in your friends' favorite movie list. . . Hints: Consider how you can relate the row index in the stats array to the respective movie in the Netflix list by comma position. . The strfind() and find() functions may prove useful