How to select a submatrix from a bigger one?
이전 댓글 표시
So, I've got an Excel file that contains a matrix that's over 50 columns wide, and a Matlab script that uses xlsread to extract that matrix and do some computations on it.
But, the user of the script might not want to use the whole matrix, he might only want 15 columns from it, for example.
Now I'd need to write a code that would allow a user to select which columns he'd like to use in his computations. Anyone have an idea for an elegant / convenient / user friendly solution?
채택된 답변
추가 답변 (1개)
Azzi Abdelmalek
2015년 8월 3일
편집: Azzi Abdelmalek
2015년 8월 3일
idx=input('choose your 15 columns')
M=A(:,idx)
카테고리
도움말 센터 및 File Exchange에서 ActiveX에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!