Make a logical array into a single logical column, if any of the array rows contain a 1
조회 수: 11 (최근 30일)
이전 댓글 표시
Hi Guys i have a logical array of the size 10617x21 named a. I need it to be 10617x1 named b, so only one column.
One condition, if there was a 1 anywhere in the row on a, then i would like the row value of b to also be 1.
Smaller example:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/818714/image.png)
댓글 수: 0
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!