{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

fprintfDemo - fprintf'a =%e\n a pause fprintf d-format...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
% fprintfDemo.m % (c)2000 g.m.dick % script demonstrates simple use of fprintf for screen output. % caution using %d if value is not an integer. a = input('Enter a: ');
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: fprintf('a = %e \n', a); pause fprintf(' d-format = %d \n f-format = %f\n', a, a) fprintf(' 6.2f-format = %6.2f\n', a) f...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online