Increase the interpolation increment

조회 수: 2 (최근 30일)
Torkan
Torkan 2019년 8월 31일
댓글: darova 2019년 9월 8일
Hi,
I have data sets as .csv with x and y coordinates. The data are correct and I plot them. However, I need to increase the X increment since the data are too much to be read by a machine. Does anybody know how can I increase the increment? Now, the X increment is 0.01 (inorganized, less or more) I need to plot the same thing with less number of points without reduce the accuracy too much. increment of let's say 0.5. What should I do?
Thanks

채택된 답변

darova
darova 2019년 8월 31일
If you want to read every 5th point:
i = 1:5:length(x);
plot(x(i),y(i))
  댓글 수: 5
John D'Errico
John D'Errico 2019년 9월 8일
I accepted it.
darova
darova 2019년 9월 8일

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by