I am trying to execute the following code:
dataset = importfile('MyFile.csv');
time = dataset(:,2);
rolls = dataset(:,3);
figure(3)
plot(time,rolls)
The importfile function was made using Matlab's automatic tools to bring over my data set (the vectors are approx. 1900 in length).
Matlab prints the plot attached, and you can see that right at about data point 1000 the plot gets linear with what looks like Matlab drawing a straight line between every 10 points.
The other image I attached is an excel plot of the origanal data and I also coppied over the 'rolls' vector that Matlab imported. Both of the excel plots display as expected which tells me that the data is being correctly imported to Matlab.
Any comments appreciated.
1 Comment
Direct link to this comment
https://nl.mathworks.com/matlabcentral/answers/554908-plot-curve-becomes-jagged-after-1000-data-points-seems-to-plot-one-point-and-stretch-it-the-length#comment_1039591
Direct link to this comment
https://nl.mathworks.com/matlabcentral/answers/554908-plot-curve-becomes-jagged-after-1000-data-points-seems-to-plot-one-point-and-stretch-it-the-length#comment_1039591
Sign in to comment.