|
|
| File Information |
| Description |
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); |
| MATLAB release |
MATLAB 7.4 (R2007a)
|
| Other requirements |
Only works for R2006b or later. It uses the zoom/pan customization feature which became available in R2006b. |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (5) |
| 09 Aug 2007 |
Joacim Rådstam
|
|
|
| 10 Aug 2007 |
Rob C
|
|
|
| 10 Aug 2007 |
Jiro Doke
|
|
|
| 19 Mar 2008 |
Scott Miller
|
|
|
| 26 Oct 2009 |
Kai
|
|
|
| Updates |
| 13 Aug 2007 |
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. |
|
MATLAB Central Terms of Use
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central.
Read the complete Terms prior to use.
Contact us at files@mathworks.com