How do I index this array?
조회 수: 6 (최근 30일)
이전 댓글 표시
I need to produce an array (C) from A and B listed below, but C (the new array) must have these numbers:
if true
C =
1 2
5 8
9 10
end
How do I do this?
if true
A =
5 8 3
1 2 3
2 4 6
B =
7 6 8
8 9 10
7 3 2
3 0 2
end
댓글 수: 2
채택된 답변
Walter Roberson
2018년 2월 21일
This is just a bunch of indexing of arrays like A(2:3,1) along with using [] and some comma and semicolon and a .' or two.
댓글 수: 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!