in the question it says we need to output a table, is it just a table output by fprintf in the code or do we need to turn it into a latex table? Also if it is the output of fprintf, do we need to show it in our latex file?
also when we embed code in latex, are we required to show the code used for each part of the question or can we just need to add the full Matlab code inside the latex file?
Because the format statement I gave is carefully designed,
you should be able to just incorporate your output into latex,
using fixed width fonts.
Alternatively, you can formulate a latex table (if you want to spend the extra time and you want an even nicer look).
What is important is that what one reads eventually is aligned and easily readable, easy to see the trends, with all useful information in it, including some heading.