필터 지우기
필터 지우기

How to extract information from matrix?

조회 수: 2 (최근 30일)
Firas Al-Kharabsheh
Firas Al-Kharabsheh 2016년 4월 25일
편집: dpb 2016년 4월 25일
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개)

dpb
dpb 2016년 4월 25일
편집: dpb 2016년 4월 25일
R=B(1,:);
C=B(:,2);
Read and work through the "Getting Started" tutorial on Matlab basics...or more specifically, read
doc colon

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by