Question: please use matlab Homework 10-Structures Function Name: tomAndDerry Inputs 1. 2. 3. (struct) A structure representing the old Tom (struct) A structure representing new aspects

 please use matlab Homework 10-Structures Function Name: tomAndDerry Inputs 1. 2.

please use matlab

Homework 10-Structures Function Name: tomAndDerry Inputs 1. 2. 3. (struct) A structure representing the old Tom (struct) A structure representing new aspects of Tom (char) A field of Tom to remove Outputs 1. (struct) A structure representing the new Tom Background Tom has struggled to capture Jerry for years, so Tom decides to go on a long introspective journey to the core structure of his being. Function Description You will be given three inputs. The first one will be a structure representing Tom. The second one will be a structure representing the aspects of himself he wants to change. The third will be a character vector of a field to remove Write a function that goes through the fields of the second structure and uses them to change the values of the same field names of the first structure. Then remove the field named by the third input from the first structure, and output the edited first structure Example > tom Cleverness: 'Kinda' Gullibility: Very > new Cleverness: Extreme" Cuteness: "Quite Cuteness: 'Ehhhh Height: Not tall' >> newTom tomAndJerry (ton, new, 'Gullibility') newTom = Cleverness: Extreme Cuteness: 'Quite Height: 'Not tall Notes The fields of the second input are guaranteed to be fields of the first input, but the first input may have fields that do not exist in the second input. . . The fieldname contained in the third input will always be a field of the first input

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!