c. Extract the sub-matrix containing all the rows but only columns 2 through 11 and name this matrix grades (to make this work on any size matrix, do not hard-code the 11, but rather use end or size).
이전 댓글 표시
how do I perform this action ? can any one help ?? reguards phil
채택된 답변
추가 답변 (1개)
philip
2014년 10월 21일
댓글 수: 2
pfb
2014년 10월 21일
Philip, your questions are too vague. You wrote a 10-entry vector, which I assume is one of the required rows. Or perhaps your matrix has 1 row to begin with, and hence you can also refer to that as a row vector.
Your vector has some NaN (not a number) entries, but I do not know why they are there, nor where you need to get. You did not provide any information about the origin of your matrix, so I'm not sure how you expect people can help you. I guess you get NaNs because you're dividing by zero...
philip
2014년 10월 21일
카테고리
도움말 센터 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!