How to use logical operator '&' between two or more categorical arrays of a table to get particular rows?

2 次查看(过去 30 天)
I have a table with some categorical columns,i want to use '&' operator between them to select particular rows of the table,how can i do this?
  6 个评论
kiarash Dousti
kiarash Dousti 2016-3-29
I found the way.That is something like this:
rows = t1.Var7 == 'Sales' & t1.Var15 == '>50K';
it returns a logical array with the size of table rows! 1 shows the above condition is satisfied and 0 not!! it is solved.

请先登录,再进行评论。

回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by