From - Tue Dec 8 08:14:34 1998 >From lnolson Mon Dec 7 16:12:44 1998 Received: from math.uiowa.edu (23043@sleet.divms.uiowa.edu [128.255.26.210]) by server.divms.uiowa.edu with id QAA22710 for ; Mon, 7 Dec 1998 16:12:43 -0600 (CST) Sender: lnolson@math.uiowa.edu Message-ID: <366C52DB.C5A7D2B1@math.uiowa.edu> Date: Mon, 07 Dec 1998 16:12:43 -0600 From: Luke Olson Organization: University of Iowa X-Mailer: Mozilla 4.5 [en] (X11; U; HP-UX B.10.20 9000/778) X-Accept-Language: en MIME-Version: 1.0 To: David Stewart Subject: Re: mk_nxt_tri.m References: <366BE02A.48E7099A@math.uiowa.edu> <366BE62F.6CDAF5D9@math.uiowa.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mozilla-Status: 8013 X-Mozilla-Status2: 00000000 Dr. Stewart, I figured out how to plot these for the triangulation in test case 2. It works well and looks very cool: % % This can be put at the end of the program when % you have the value for each point of the triangulation % % U is the FEM solution at a given vertex % % scatter3 is used in order to see the point better and % it fixes the axes % % patch uses x,y,z and then a color. V just says shade % according to the height scatter3(vertices(:,1),vertices(:,2),U); hold on; % for i=1:length(triangles(:,1)) for j=1:3 vx(j)=vertices(triangles(i,j),1); vy(j)=vertices(triangles(i,j),2); V(j)=U(triangles(i,j)); end patch(vx,vy,V,V); end Hope this works for yours too, --Luke