Disable visual interpolation in plots
11 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi all, I've been looking for this for a while now:
I'd like to plot a sine wave to illustrate the process of sampling, resulting in something like this:
But when I plot a second of a sine wave (sampling rate 10 Hz), the plot line is visually interpolated between the sampling points.
Is there any way to achieve this?
Thanks in advance!
0 Commenti
Risposta accettata
per isakson
il 27 Apr 2012
There is a function named STAIRS. Doc says: "Stairstep graphs are useful for drawing time-history graphs of digitally sampled data."
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Interpolation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!