Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to filter a data

조회 수: 1 (최근 30일)
satish kumar Gouda
satish kumar Gouda 2019년 10월 21일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello,
How can i filter the data by selecting specific point with certian descretization,
for example i have data of
X = (0.081,0.082,0.089,0.091,0.095,0.098,0.13,0.15,0.18,0.21,0.25,0.31)
and i want to select
x =(0.081,0.091,0.13,0.21,0.31)

답변 (1개)

Stephan
Stephan 2019년 10월 21일
You can do this if there is a pattern:
X = [0.081,0.082,0.089,0.091,0.095,0.098,0.13,0.15,0.18,0.21,0.25,0.31];
x = [X(1:3:end) X(end)]
In your case the pattern does not get the last value, because it does not meet the pattern given for all other values. So the
X(end)
statement is needed to complete x as you wanted it to have.

이 질문은 마감되었습니다.

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by