Difference between revisions of "Xyz2pd.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Create documentation page from Spinach function header)
 
(Update function See also links and function index membership)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{DISPLAYTITLE:xyz2pd.m}} __NOTOC__
 
{{DISPLAYTITLE:xyz2pd.m}} __NOTOC__
Probability density estimation for a three-dimensional Cartesian
+
Probability density estimation for a three-dimensional Cartesian point cloud on a user-specified regular grid.
  
 
==Syntax==
 
==Syntax==
Line 7: Line 7:
 
                                   x_npts, y_npts, z_npts)
 
                                   x_npts, y_npts, z_npts)
  
==Arguments==
+
==Parameters==
  
 
         coords  - an N-by-3 array of Cartesian coordinates
 
         coords  - an N-by-3 array of Cartesian coordinates
Line 32: Line 32:
  
 
==See also==
 
==See also==
[[Main_Page]]
+
[[plot_3d.m]], [[plot_2d.m]], [[apodisation.m]], [[axis_1d.m]], [[contspacing.m]], [[crop_2d.m]], [[ft_axis.m]], [[heterodyne.m]], [[int_2d.m]], [[molplot.m]], [[mri_2d_plot.m]], [[plot_1d.m]], [[plot_uf.m]], [[slice_2d.m]], [[stack_2d.m]], [[sweep2ticks.m]], [[volplot.m]], [[zoom_3d.m]], [[Import,_export,_and_visualisation]], [[Kernel_utilities]], [[Main_Page]]
  
 
''Version 2.11, authors: [[Ilya Kuprov]]''
 
''Version 2.11, authors: [[Ilya Kuprov]]''

Latest revision as of 19:43, 6 June 2026

Probability density estimation for a three-dimensional Cartesian point cloud on a user-specified regular grid.

Syntax

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

Parameters

       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

plot_3d.m, plot_2d.m, apodisation.m, axis_1d.m, contspacing.m, crop_2d.m, ft_axis.m, heterodyne.m, int_2d.m, molplot.m, mri_2d_plot.m, plot_1d.m, plot_uf.m, slice_2d.m, stack_2d.m, sweep2ticks.m, volplot.m, zoom_3d.m, Import,_export,_and_visualisation, Kernel_utilities, Main_Page

Version 2.11, authors: Ilya Kuprov