Question: Function Name: brainless MATLAB Inputs 1. (cell) Cell array of the monsters in the city Outputs: 1. (cell) Updated cell array of the monsters in

 Function Name: brainless MATLAB Inputs 1. (cell) Cell array of the

Function Name: brainless MATLAB Inputs 1. (cell) Cell array of the monsters in the city Outputs: 1. (cell) Updated cell array of the monsters in the city 2. (char) A string stating how many zombies you found in the city Background Just when you thought the world had achieved post-WWIl peace, a new enemy arrives that requires the full force of the planet to beat...ZOMBIES. You are tasked with finding all the zombies in your city and beating them using, of course, plants Function Description: You are given a cell array of strings, where each cell represents one monster. Replace all cells containing the character vector 'brainless', case insensitive, with'plants', without using iteration, and output this updated array For the second output, output a string following the guidelines below Number of occurrences of 'brainless" Second output "City clear. Move out!' 'He didn't stand a chance.' Good work! We found zombies! 0 2 or more Where > monsters'aLieNs' BRAINless' "vampires' >>[updated, str]-brainless (monsters) updated { ' aLieNs ' ; ' plants' ; ' vampires' } str 'He didn't stand a chance.' Notes: . Your function should not be case sensitive. For example, the string 'bRaIN1EsS' should still be replaced with 'plants" . Each cell is guaranteed to contain only a character vector . Besides the replaced cells, your output cell array should be identical to the input cell array

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!