How to separate data?

15 次查看(过去 30 天)
Mohammad Mohiudding
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