Want to find a specific column of needed data
9 次查看(过去 30 天)
显示 更早的评论
I have a matrix of B= [ ]4*25 data bits, and i have another variable which consist of one of the column of B. How can i find specific column with its number?
e.g. B=[1 1 0 1; 1 1 1 0;..........0 1 1 1]; and i want to find S=[1 0 1 1] in B.
0 个评论
采纳的回答
更多回答(2 个)
Meghana Dinesh
2015-11-18
编辑:Meghana Dinesh
2015-11-18
Have you tried using ismember? I believe you can use a combination of MATLAB functions find and ismember.
find(ismember(M,X),dim)
1 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!