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 で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!