How to separate data?

조회 수: 9 (최근 30일)
Mohammad Mohiudding
Mohammad Mohiudding 2021년 2월 21일
편집: KALYAN ACHARJYA 2021년 2월 21일
I have a data set of signal . the dataset has 120030data in one column. i want to separate data which has 1024data in every set.

답변 (1개)

KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 2월 21일
편집: KALYAN ACHARJYA 2021년 2월 21일
Following code remove all adata elements which are equal to 1024
result=data(~(data==1024))
Or
data(data==1024)=[]
More:
if you want to get the indices of 1024 in the data
idx=find(data==1024)

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by