Question: fprintf how does it work?
Answer: The fprintf function is used for printing information to the screen. The fprintf function prints an array of characters to the screen: fprintf('Happy Birthday\n'); ... To "place" a number into this string of printed characters we use several formatting options, but they all start with a % sign.