Displaying select matrix columns with headers
이전 댓글 표시
Is there a way to display only specific columns of a matrix (say columns 1, 10, 20, 32) with column and row headers for display purposes?
답변 (1개)
per isakson
2014년 2월 10일
편집: per isakson
2014년 2월 10일
Hint:
M = magic(12);
M( :, [ 3, 5 ,9 ] )
returns
ans =
3 140 136
130 17 21
118 29 33
39 104 100
....
and see fprintf
카테고리
도움말 센터 및 File Exchange에서 Numeric Types에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!