If I have a matrix My matrix is: BB = [-1 5 6;4 -3 2;5 6 -7]. How to print only positive values using a while loop?
조회 수: 1 (최근 30일)
이전 댓글 표시
How to print single values of a matrix in matlab. I am using a while loop to read the matrix and print only positive values using an if condition. But with all my trials, it matlab always ignores the if conditions and displays all the values. Is there a way to force to print only the specific values.
댓글 수: 2
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!