


INPUT function xyz=getgriddata(beamelem,grids) Create array z of size num_grids x 1 (1 for z) of space coordinates for each grid.


0001 function z=getgriddata(beamelem,grids) 0002 %INPUT function xyz=getgriddata(beamelem,grids) 0003 %Create array z of size num_grids x 1 (1 for z) 0004 %of space coordinates for each grid. 0005 0006 num_grids=2; 0007 0008 z=zeros(num_grids,1); 0009 0010 for i=1:num_grids, 0011 z(i)=grids(beamelem.g(i)).grid.z; 0012 end