hw11_p08b - % 'wt' means "write...

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]; %now solve for x vector [c1,c2,c3,loading1]. ..need to change A and b first: % A(1,4) = -1; A(4,4) = 0; b(1,1) = 0; b(4,1) = 30 - 11.797*75; b x = A\b; x fid4 = fopen('hw11_p08_answer.txt','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: % 'wt' means "write text" if (fid4 < 0) error('could not open file "hw11_p08_answer.txt"'); 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

Ask a homework question - tutors are online