scatter3mpdf is written by Eiji Konaka, Sep/2023
This function plotts the followings in one 3-d figure.
- 3-d scatter plot
- 2-d marginalized histogram (or cumulated histogram) on x-y, y-z, and z-x planes using PCOLOR function. Relative frequency is shown by cell colors.
- 1-d marginalized pdf (or cdf) along x, y, and z axes. The plotted pdf is calculated by ksdensity, instead of histogram due to technical reasons.
Inputs
- x, y, z: data vector with the same dimensions
Options
- mPDFAreaRatio: The size of the ratio of pdf plot area to scatter area (default=0.5)
- FunctionType: you can select the type of distribution function from 'pdf' or 'cdf' (default='pdf')
- Marker: type of marker of scatter3 function (default='o')
Output
- h: graphic handle of figure
Note: The other options, such as colormap of PCOLOR function, can not be specified on calling this function.
引用格式
Eiji Konaka (2024). scatter3mpdf (https://www.mathworks.com/matlabcentral/fileexchange/135016-scatter3mpdf), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2023a
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!