To insert a single quotation mark in a string, use two single quotation marks together. A unit circle has circumference 6.283186.fprintf('A unit circle has circumference %g.\n',2*pi).Note fprintf displays negative zero (-0) differently on some platforms, as shown in the following table.Ĭreate a text file called exp.txt containing a short table of the exponential function: The function then continues in a similar manner through any additional matrix arguments. The function recycles the format string through the elements of A (columnwise) until all the elements are used up.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |