DSPLOT - downsampled plot

버전 (4.58 KB) 작성자: Jiro Doke
This function creates a downsampled plot to improve the speed of exploration (zoom, pan)

다운로드 수: 5.6K

업데이트 날짜: 2016/9/1

라이선스 보기

편집자 메모: This was a File Exchange Pick of the Week

This version of "plot" will allow you to visualize data that has very large number of elements. Plotting large data set makes your graphics sluggish, but most times you don't need all of the information displayed in the plot. Your screen only has so many pixels, and your eyes won't be able to detect any information not captured on the screen.
This function will downsample the data and plot only a subset of the data, thus improving the memory requirement. When the plot is zoomed in, more information gets displayed. Some work is done to make sure that outliers are captured.

dsplot(x, y)
dsplot(x, y, numpoints)

x =linspace(0, 2*pi, 1000000);

인용 양식

Jiro Doke (2023). DSPLOT - downsampled plot (https://www.mathworks.com/matlabcentral/fileexchange/15850-dsplot-downsampled-plot), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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

Updated license

Update - added CreateFcn for the figure so that when the figure is saved and re-loaded, the zooming and panning works. Also added a menu item for saving out the original data back to the base workspace.