Difference between revisions of "Xyz2pd.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Expand See also links to related Spinach functions and docs)
Line 1: Line 1:
 
{{DISPLAYTITLE:xyz2pd.m}} __NOTOC__
 
{{DISPLAYTITLE:xyz2pd.m}} __NOTOC__
Probability density estimation for a three-dimensional Cartesian point cloud on a user-specified regular grid.
+
Probability density estimation for a three-dimensional Cartesian
  
 
==Syntax==
 
==Syntax==
Line 32: Line 32:
  
 
==See also==
 
==See also==
[[Main_Page]]
+
* [[plot_3d.m]]
 +
* [[plot_2d.m]]
 +
* [[kuprogram.m]]
 +
* [[Import,_export,_and_visualisation]]
 +
* [[Kernel_utilities]]
 +
* [[Main_Page]]
 +
 
 +
 
  
 
''Version 2.11, authors: [[Ilya Kuprov]]''
 
''Version 2.11, authors: [[Ilya Kuprov]]''

Revision as of 21:37, 22 February 2026

Probability density estimation for a three-dimensional Cartesian

Syntax

            density=xyz2pd(coords,x_range,y_range,z_range,...
                                  x_npts, y_npts, z_npts)

Arguments

       coords  - an N-by-3 array of Cartesian coordinates
       x_range - a two-element vector [xmin xmax] specifying the
                 Cartesian grid extent along the x axis
       y_range - a two-element vector [ymin ymax] specifying the
                 Cartesian grid extent along the y axis
       z_range - a two-element vector [zmin zmax] specifying the
                 Cartesian grid extent along the z axis
       x_npts  - the number of grid points along the x axis
       y_npts  - the number of grid points along the y axis
       z_npts  - the number of grid points along the z axis

Outputs

       density - a three-dimensional array containing the num-
                 ber of points falling into each grid cell

Examples

See examples in the Spinach distribution relevant to this function.

Notes

This page was generated from the function header in the Spinach repository.

See also


Version 2.11, authors: Ilya Kuprov