Q:

Information on some hurricanes is stored in a vector of structures; the name of the vector variable is hurricanes. For example, one of the structures might be initialized as follows:

0

Information on some hurricanes is stored in a vector of structures; 

the name of the vector variable is hurricanes. For example, one of the 

structures might be initialized as follows:

struct('Name','Bettylou', 'Avespeed',18,...

 'Size', struct('Width',333,'Eyewidth',22));

All Answers

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

Write a function printHurr that will receive a vector of structures in this format as an input argument. It will print, for every hurricane, its Name and Width in a sentence format to the screen. If a second argument is passed to the function, it is a file identifier for an output file (which means that the file has already been opened), and the function will print in the same format to this file (and does not close it). 

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