densityplot(x,y,var​argin)

density plot

現在この提出コンテンツをフォロー中です。

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 (2026). densityplot(x,y,varargin) (https://jp.mathworks.com/matlabcentral/fileexchange/65166-densityplot-x-y-varargin), MATLAB Central File Exchange. に取得済み.

カテゴリ

Help Center および MATLAB AnswersStochastic Differential Equation (SDE) Models についてさらに検索

一般的な情報

MATLAB リリースの互換性

  • すべてのリリースと互換性あり

プラットフォームの互換性

  • Windows
  • macOS
  • Linux
バージョン 公開済み リリース ノート Action
1.1

Remove unnecessary comments.

1.0.0.0