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

7 visualizaciones (últimos 30 días)
hyungtae kim
hyungtae kim el 21 de Mzo. de 2016
Respondida: Jesús Zambrano el 7 de Feb. de 2020
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 comentario
Tejas
Tejas el 25 de Mzo. de 2016
Here is a discussion on how to plot data from a Scope which may be helpful.

Iniciar sesión para comentar.

Respuestas (1)

Jesús Zambrano
Jesús Zambrano el 7 de Feb. de 2020
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

Categorías

Más información sobre View and Analyze Simulation Results en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by