Can I use interpolation to small scale?
조회 수: 3 (최근 30일)
이전 댓글 표시
채택된 답변
Askic V
2022년 12월 5일
편집: Askic V
2022년 12월 5일
Not really sure if I understood your question, but if you want less data points within the same interval, then just use interp1. Here is one example:
close all
x = linspace(0, 10, 100); % 100 points between 0 and 10
y = sin(x * 2);
plot(x,y)
hold on
% 2 times smaller in size
xi = linspace (0,10,50); % 50 points between 0 and 10
yi = interp1(x, y, xi, 'linear');
plot(xi,yi,'r')
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!