


GETGRIDDATA - create an array of space coordinates for the grids
Create array xyz of size num_grids x 3 (3 for x,y and z)
of space coordinates for each grid.
Usage:
xyz=getgriddata(triaelem,grids)

0001 function xyz=getgriddata(triaelem,grids) 0002 %GETGRIDDATA - create an array of space coordinates for the grids 0003 % 0004 % Create array xyz of size num_grids x 3 (3 for x,y and z) 0005 % of space coordinates for each grid. 0006 % 0007 % Usage: 0008 % xyz=getgriddata(triaelem,grids) 0009 0010 num_grids=3; 0011 0012 xyz=zeros(num_grids,3); 0013 0014 for i=1:num_grids, 0015 xyz(i,1)=grids(triaelem.g(i)).grid.x; 0016 xyz(i,2)=grids(triaelem.g(i)).grid.y; 0017 xyz(i,3)=grids(triaelem.g(i)).grid.z; 0018 end