Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

1. Identify three communication approaches to identity.

Answered: 1 week ago

Question

d. Who are important leaders and heroes of the group?

Answered: 1 week ago

Question

3. Describe phases of minority identity development.

Answered: 1 week ago