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
Get step-by-step solutions from verified subject matter experts
