Disable visual interpolation in plots

조회 수: 9 (최근 30일)
Matthias
Matthias 2012년 4월 27일
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!

채택된 답변

per isakson
per isakson 2012년 4월 27일
There is a function named STAIRS. Doc says: "Stairstep graphs are useful for drawing time-history graphs of digitally sampled data."
  댓글 수: 1
Matthias
Matthias 2012년 4월 27일
How brilliant is this?! If I had only known what keywords to enter in the help doc.
Thanks a million!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by