这个函数是用来使散射点密度图数据,基于matlab hist3内置函数。因此函数的输入densityplot hist3可以参考。给出一些例子如下:
(1)
x = randn (2048 1);
y = randn (2048 1);
(1:512)= x (1:512) + 2.75;
(1537:2048)= x (1537:2048) + 2.75;
(1025:2048)= y (1025:2048) + 2.75;
%
抽搐
densityplot (x, y, [20、20]);
toc
这个函数的优点是效率高,它的代码非常简单。你可以修改它根据你自己的要求。享受。
引用作为
Changyong他(2023)。变长度输入宗量densityplot (x, y)(//www.tatmou.com/matlabcentral/fileexchange/65166-densityplot-x-y-varargin), MATLAB中央文件交换。检索。
版本 | 发表 | 发布说明 | |
---|---|---|---|
1.1 | 删除不必要的评论。 |
|
|
1.0.0.0 |