Error with plotting a massive text file data set.
1 次查看(过去 30 天)
显示 更早的评论
I have a really big data set consisting of a time stamp and a measured value. It looks like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1323795/image.png)
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1323800/image.png)
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?
Thanks.
2 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!