Q:

Here is an inefficient way of creating a structure variable to store a person’s name as first, middle, and last:

0

Here is an inefficient way of creating a structure variable to store a 

person’s name as first, middle, and last:

 myname.first = 'Homer';

 myname.middle = 'James';

 myname.last = 'Fisch';

Re-write this more efficiently using the struct function:

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

>> myname = struct('first','Homer','middle','James',... 'last', 'Fisch') 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now