scatter_LDS

버전 1.2.0.0 (7.88 KB) 작성자: Mark Matusevich
Scatter plot for large data set (tested for 10 million points).
다운로드 수: 380
업데이트 날짜: 2014/2/18

라이선스 보기

MATLAB scatter plot function has significant problems showing large data set (e.g. 1000000 points). However, there is no much information in drawing thousands of points one on top of another. scatter_LDS reduces the amount of data shown, while preserving the isolated points.
For example, let's assume that you are conducting a study, which aim is to estimate the probability of myocardial infarction based on two metrics:
- duration of atrial fibrillation during 24 hour ambulatory ECG recording (stored in vector 'holter').
- peak ischemic ST depression during cardiac stress test (stored in vector 'ST').
Also, boolean vector 'MI' has value 'true' for those patients which experience myocardial infarction
during 5 years since the above tests. Use the following commands to initialize the variables:
>> N = 1e6;
>> t = 20*abs(randn(1,N));
>> MI = t<=5;
>> holter = max(0,min(100, 15*randn(1,N)+30+40*5./t));
>> ST = (5-2*MI).*abs(randn(1,N))+5*MI;

Now you can visualise the data using the following commands:
>> scatter_LDS(ST(~MI),holter(~MI));
>> hold on;
>> scatter_LDS(ST(MI),holter(MI),[],'r');
>> hold off

For additional explanations type: help scatter_LDS

This submission is courtesy of Norav Medical (www.norav.com) - the leading company in the fields of PC-ECG, EKG Management systems and related non-invasive cardiac devices.

인용 양식

Mark Matusevich (2024). scatter_LDS (https://www.mathworks.com/matlabcentral/fileexchange/45407-scatter_lds), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2009b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Scatter Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.2.0.0

Screenshot has been lost during the last update. This update returns the screenshot back.

1.1.0.0

Added the following line to the description: "For additional explanations type: help scatter_LDS"

1.0.0.0