densityplot(x,y,varargin)

버전 1.1 (1.44 KB) 작성자: Changyong He
density plot

다운로드수: 2.5K

업데이트 날짜: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 (2022).densityplot(x,y,varargin)(//www.tianjin-qmedu.com/matlabcentral/fileexchange/65166-densityplot-x-y-varargin), MATLAB Central File Exchange. 검색됨.

MATLAB 릴리스 호환 정보
개발 환경: R2016b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
태그태그 추가

Community Treasure Hunt

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

Start Hunting!