densityplot(x,y,var​argin)

版本 1.1 (1.4 KB) 作者: Changyong He
density plot
3.3K 次下载
更新时间 2017/11/23

查看许可证

This function is used to make density plot of scatter point data, which is based on build-in function hist3 in matlab. So the inputs of the function densityplot can refer to hist3. Some examples are given as below:
(1)
x = randn(2048, 1);
y = randn(2048, 1);
x(1:512) = x(1:512) + 2.75;
x(1537:2048) = x(1537:2048) + 2.75;
y(1025:2048) = y(1025:2048) + 2.75;
%
tic
densityplot(x, y, [20,20]);
toc
The advantage of this function is the high efficiency and its code is very simple. You can modify it according to your own requirement. Enjoy.

引用格式

Changyong He (2024). densityplot(x,y,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/65166-densityplot-x-y-varargin), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2016b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Stochastic Differential Equation (SDE) Models 的更多信息
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1

Remove unnecessary comments.

1.0.0.0