hw11_p08a - error('could not open file

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

View Full Document Right Arrow Icon
clc clear c A=[13.422 0 0 0; -13.422 12.252 0 0; 0 -12.252 12.377 0; 0 0 -12.377 11.797]; b=[750.5; 300; 102; 30]; x=A^(-1)*b; x fid4 = fopen('hw11_p08_answer.txt','a'); % 'wt' means "write text" if (fid4 < 0)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: error('could not open file &quot;hw11_p08_answer.txt&quot;'); end; e fprintf(fid4, '\nc1 = %10.5f\nc2 = %10.5f\nc3 = %10.5f\nc4 = %10.5f\n', x(1), x(2), x(3), x(4)); 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.

Ask a homework question - tutors are online