extracting data from matrix
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello every bod
let assume matrix
A =
[10 20 1
30 40 2
50 60 3
70 80 4
90 100 5]
B =
[30 40
70 80]
we need to identify the third column of the matrix B, hence
B =
[30 40 2
70 80 4]
댓글 수: 0
답변 (1개)
Azzi Abdelmalek
2016년 7월 16일
편집: Azzi Abdelmalek
2016년 7월 16일
A= [10 20 1
30 40 2
50 60 3
70 80 4
90 100 5]
B=[30 40
70 80]
idx=ismember(A(:,1:2),B,'rows')
B(:,3)=A(idx,3)
댓글 수: 2
Azzi Abdelmalek
2016년 7월 16일
편집: Azzi Abdelmalek
2016년 7월 16일
Can you explain? post an example to make your question clear
참고 항목
카테고리
Help Center 및 File Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!