Question: I need an answer Finding a substring: Guest list Write a logical function isGuest to determine if a name is on the guest list of
Finding a substring: Guest list Write a logical function isGuest to determine if a name is on the guest list of an event. The function should operate independent of upper or lower case characters in the string. A string array contains the guest list. If there are multiple entries of the same name, a single logical must be returned. For example: 29uestlistb Benjan in's swarota , "Delphla", "Benjanin", "Lovie", "Ena"1i sisGuest("benjamin" guestlist) Logical Restriction: The function isGuest must use the functions contains and any Your Function Save C Rese MATLAB Documentation 1 function onList isGuest(gues tName, guestlist) % Insert code here s end Code to call your function Rese 1 guestlist-["Benjamin", "Harold", "Delphia", 2 isGuest "benjamin" .guestlist) "Benjamin", "Lovie", "Ena
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
