I have a matrix A=[1 2 3; 1 2 9; 2 3 4]. I want a matrix B whose column 1 is equal to 1. How can I do this? B=[1 2 3; 1 2 9]
이전 댓글 표시
I have a matrix A=[1 2 3; 1 2 9; 2 3 4]. I want a matrix B whose column 1 is equal to 1. How can I do this? B=[1 2 3; 1 2 9]
채택된 답변
추가 답변 (1개)
Image Analyst
2014년 5월 10일
You say "I have a matrix A=[1 2 3; 1 2 9; 2 3 4]. I want a matrix B whose column 1 is equal to 1. How can I do this? B=[1 2 3; 1 2 9]" You just gave the answer in the question itself! The answer is
B=[1 2 3; 1 2 9];
Read your question. The matrix A is not involved AT ALL in how you came up with B. No criteria or tests were to be applied to A, so A can just be ignored.
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!