This preview shows page 1. Sign up to view the full content.
Unformatted text preview: fid = fopen( 'bmat.txt' , 'r' ); BB = fscanf(fid, '%f' ,inf); nn = size(BB) %Note: same as Note above. m = nn(1)/4; BBNEW = reshape(BB,4,m)'; fclose(fid); The first three elements of x are -1 -5 -4. Determine the output of the disp statements in the first code above. Use your modified version of thomas.m – call it spthomas.m. You should have a runspthomas.m which reads the bmat.txt file and prepares the data for spthomas.m. Submit spthomas.m and runspthomas.m files to WebCT. Problem 2 . (25 points) Write a new thomas which works with spdisp for an anti-tridiagonal matrix. Use the first six rows of the bmat.txt as your text case. Submit antispthomas.m and runantispthomas.m files to WebCT. Clearly show the x vector....
View Full Document
This note was uploaded on 04/26/2010 for the course CEG 616 taught by Professor Taylor during the Winter '10 term at Wright State.
- Winter '10