Plot does not include the whole data set

23 visualizaciones (últimos 30 días)
Oliver Makan
Oliver Makan el 13 de Jul. de 2023
Comentada: Oliver Makan el 13 de Jul. de 2023
Hello together,
I wanted to plot my arrays (106510x1) Time & Voltage but it only plots me values up to 103000 and cut off the remaining 3k values.
Can you help me with this issue please. I couldn't find an issue like this one yet in the forum.
Thanks in advance.

Respuesta aceptada

Rahul
Rahul el 13 de Jul. de 2023
Hi Oliver,
Please check a couple of things at your end:
  1. Check the range of your x-axis values: Ensure that the x-axis values in your DM4.Time array cover the entire range of your data, including the missing 3,000 values. It's possible that the x-axis range is not set correctly, causing the plot to cut off.
  2. Verify the size of your arrays: Double-check that both DM4.Time and DM4.Voltage arrays have the same length of 106,510 elements. If one of the arrays has fewer elements, it could cause the plot to display only a portion of the data.
  3. Adjust the plot limits: Manually set the limits of the x-axis using the xlim function to ensure that the entire range of your data is displayed. For example, you can try xlim([min(DM4.Time), max(DM4.Time)]) to set the x-axis limits based on the minimum and maximum values in DM4.Time.
  4. Check for any data manipulation or filtering: If you have performed any data manipulation or filtering on your arrays, make sure that it is not inadvertently causing the issue.
Hope this helps.
Thanks.
  1 comentario
Oliver Makan
Oliver Makan el 13 de Jul. de 2023
Hi Rahul,
thanks for your help.
I checked again and filtered relevant data of the Time array.
Thank you.

Iniciar sesión para comentar.

Más respuestas (0)

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by