i want to take each row in matrix
조회 수: 1 (최근 30일)
이전 댓글 표시
i have matrix 7*3
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/293792/image.png)
i want to take 001 in the first
011and in the second
댓글 수: 0
채택된 답변
Rik
2020년 5월 18일
Trivial with the color operator:
clc
data=[0 0 ;0 0 1;0 0 1;1 1 1;0 1 1;1 0 1;1 1 1];
for n=1:size(data,1)
tmp=data(n,:);
%do something useful with tmp
disp(tmp)
end
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!