Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

What is the purpose of a data communications standard?

Answered: 1 week ago

Question

b. Where did they come from?

Answered: 1 week ago