Conditional equation X1=X(y==1) ?
2 views (last 30 days)
Show older comments
Safouane Chergui
on 13 Jul 2017
Answered: Fangjun Jiang
on 13 Jul 2017
I have a matrix X and a column vector y. When I write something like X1=X(y==1), I only get the numbers from the first column of X. How to get numbers from all others columns when y==1 ?
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!