DSPLOT - downsampled plot

版本 1.0.0.1 (4.6 KB) 作者: Jiro Doke
This function creates a downsampled plot to improve the speed of exploration (zoom, pan)
5.7K 次下载
更新时间 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.

Syntax:
dsplot(x, y)
dsplot(y)
dsplot(x, y, numpoints)

Example:
x =linspace(0, 2*pi, 1000000);
y1=sin(x)+.02*cos(200*x)+0.001*sin(2000*x)+0.0001*cos(20000*x);
dsplot(x,y1);

引用格式

Jiro Doke (2024). 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 的更多信息
致谢

启发作品: jplot, Stability Analyzer 53230A

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.1

Updated license

1.0.0.0

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.