export

PURPOSE ^

EXPORT - exports results from a mesh to a regular grid

SYNOPSIS ^

function export_results=export(md,results, xlower,ylower,xposting,yposting,xsize,ysize)

DESCRIPTION ^

EXPORT - exports results from a mesh to a regular grid

   this routine exports results from a mesh to a regular grid 
   of postings (xposting,yposint) with coordinates for lower left 
   corner (xlower,ylower), and of size (xsize,ysize) 

   Usage:
      export_results=export(md,results, xlower,ylower,xposting,yposting,xsize,ysize)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function export_results=export(md,results, xlower,ylower,xposting,yposting,xsize,ysize)
0002 %EXPORT - exports results from a mesh to a regular grid
0003 %
0004 %   this routine exports results from a mesh to a regular grid
0005 %   of postings (xposting,yposint) with coordinates for lower left
0006 %   corner (xlower,ylower), and of size (xsize,ysize)
0007 %
0008 %   Usage:
0009 %      export_results=export(md,results, xlower,ylower,xposting,yposting,xsize,ysize)
0010 
0011 %Build x_m and y_m
0012 x_m=(xlower):xposting:(xlower+xposting*(xsize-1));
0013 y_m=(ylower):yposting:(ylower+yposting*(ysize-1));
0014 
0015 [X,Y]=meshgrid(x_m,y_m);
0016 export_results=griddata(md.x,md.y,results,X,Y);

Generated on Sun 29-Mar-2009 20:22:55 by m2html © 2003