using smoothed data in FOR loop
조회 수: 3 (최근 30일)
이전 댓글 표시
hi
I wrote a code in a for loop, in the code a variable is updating and another variable is effected by, the first variable is so noisy at the end of the loop and I want the smoothed one. I have used the smooth order but it works at the end of loop and in the loop it does not work for example I want the first data in the loop be the first data of the smoothed one etc.
this is the code:
for i = 1:15000
.
.
.
T2(i) = .........
x(i) = 5*T2(i);
end
the T2 is
and the smoothed one is:
i used the smooth order in the loop as:
for i = 1:15000
.
.
.
T2(i) = . . . .
T2(i) = smooth(T2(i),0.1,'rloess');
x(i) = 5*T2(i);
end
but it does not work!
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!