fprintfDemo - fprintf('a = %e \n', a); pause fprintf('...

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

This note was uploaded on 04/05/2010 for the course CHEMENG 05078870 taught by Professor Mustafa during the Spring '10 term at Ege Üniversitesi.

Ask a homework question - tutors are online