Borrar filtros
Borrar filtros

Error with plotting a massive text file data set.

1 visualización (últimos 30 días)
Niki Wilson
Niki Wilson el 14 de Mzo. de 2023
Respondida: Cameron el 14 de Mzo. de 2023
I have a really big data set consisting of a time stamp and a measured value. It looks like this:
I plotted the data using the following code:
load file.txt;
x = file(:, 2);
y = file(:, 3);
plot(x, y);
It runs without throwing errors, but the x values are all just 11. That was the only number that saved.
Does anyone know what I am doing wrong? Also, is there a way to manipulate the data set so that the time stamp starts from 0 and each subsequent point is the amount of time that has elapsed from the previous measurment?
  2 comentarios
Mathieu NOE
Mathieu NOE el 14 de Mzo. de 2023
can you share an extract of you file ?
Niki Wilson
Niki Wilson el 14 de Mzo. de 2023
This is the entire data set.

Iniciar sesión para comentar.

Respuesta aceptada

Cameron el 14 de Mzo. de 2023
data = readtable('Analysis1.txt');

Más respuestas (0)


Community Treasure Hunt

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

Start Hunting!

Translated by