How to extract information from matrix?
이전 댓글 표시
If i have this matrix
B = [ 1 1 0 1
0 0 0 0
0 1 0 0
0 1 0 0 ]
how i can in some way to extract these information
- 1 1 0 1 , 1st row
- 1 0 1 1 , second column
답변 (1개)
R=B(1,:);
C=B(:,2);
doc colon
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!