densityplot(x,y,var​argin)

Versione 1.1 (1,44 KB) da Changyong He
density plot
3,6K download
Aggiornato 23 nov 2017

Visualizza la licenza

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.

Cita come

Changyong He (2025). densityplot(x,y,varargin) (https://it.mathworks.com/matlabcentral/fileexchange/65166-densityplot-x-y-varargin), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2016b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Stochastic Differential Equation (SDE) Models in Help Center e MATLAB Answers
Tag Aggiungi tag

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.1

Remove unnecessary comments.

1.0.0.0