How to return the value of the second column elements of a matrix by use indexing command?
When the matrix is
mat_a = [1,-3;4,6];
mat_c = [mat_a mat_a;mat_a mat_a]

 채택된 답변

Alan Stevens
Alan Stevens 2021년 3월 14일
편집: Alan Stevens 2021년 3월 14일

1 개 추천

mat_c(:,2)

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

질문:

2021년 3월 14일

편집:

2021년 3월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by