How can i adjust the number of data point for plot?

조회 수: 7 (최근 30일)
hyungtae kim
hyungtae kim 2016년 3월 21일
답변: Jesús Zambrano 2020년 2월 7일
Hello,
I have a data file of two columns(time and value). I imported data file by using 'signal builer'. And I can plot the data simply by connecting 'scope'.
But I want to adjust the number of data point in plot. For example, I would like to plot 5 data points only when whole data points are 10.
Any ideas please? I am very newbee for Matlab and Simulink...
Thanks in advance!
  댓글 수: 1
Tejas
Tejas 2016년 3월 25일
Here is a discussion on how to plot data from a Scope which may be helpful.

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

답변 (1개)

Jesús Zambrano
Jesús Zambrano 2020년 2월 7일
Hi Hyungtae,
Probably you would like to apply decimation when plotting the data? If so, open the Scope, then right-click on it and select Configuration Properties, then go to the tab Logging and you will see a checkbox named 'Decimation' where you can define the amount of points to reduce when plotting the data. See figure below.
decimation.png

카테고리

Help CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by