This preview shows page 1. Sign up to view the full content.
Unformatted text preview: fid4 = fopen('hw08_p02_answer.txt','a'); % 'wt' means "write text" if (fid4 < 0) error('could not open file "hw08_p02_answer.txt"'); end; e fprintf(fid4,'\n\nh = %10.5f\n', h); fprintf(fid4,'x\t\t\t\ty(x)\t\t\t\tY(x)\t\t\t\terror\n'); for i = 1:length(x) if mod(i-1,int_1) == 0 fprintf(fid4,'%15.5f%15.5f%15.5f%15.5f\n', . .. x(i),y(i),ytrue(i), y(i)-ytrue(i)); end end fclose(fid4);...
View Full Document
This note was uploaded on 02/22/2010 for the course CHE 348 taught by Professor Chelikowsky during the Spring '08 term at University of Texas at Austin.
- Spring '08