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:
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:10| Question number:8.10
All Answers
total answers (1)
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