Question: Write a function prtnames that will receive a struct as an input and will print the names of the fields from the struct in the

Write a function prtnames that will receive a struct as an input and will print the names of the fields from the struct in the format shown below. You may assume that the input argument that is passed to the function is in fact a struct. >> st = struct('month',3,'day',24); >> prtnames(st) Field 1 is: 'month' Field 2 is: 'day'

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 Programming Questions!