selecting rows from column vectors

1 次查看(过去 30 天)
Hi all, I have 10 column vectors with 52,520 observations. I want to extract expecfic observation rows per column vectors, I am trying to use the following code without any luck ( getting a 0*10 table). Is there any reference or other way to do this I can look to?
Thanks in advance
load mpw %dataset
h103 = mpw(mpw.hid=='103',:); %103 is the sample ID across 512 rows * 10 columns ( on this step I am getting a 0*10 table
h103(1:512,{'v1','v2','temp1','temp2','rh1','rh2'});

采纳的回答

madhan ravi
madhan ravi 2020-7-17
mpw.hid=='103'
With
strcmp(mpw.hid,'103')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by