I have a matrix with 100 x 100, from that i have to select a 50 x 70 matrix, how should i do it in matlab

In many functions i cant generate with different dimensions in the row and columns (i.e)i can generate a dct matrix with the dimensions of 10 x 15..so that i can generate a 15 x 15 and can i select a 10 x 15 matrix from it...

 채택된 답변

ajith
ajith 2013년 11월 22일
편집: ajith 2013년 11월 22일
for example a= 15 x 15 matrix then
you do
a=a(1:10,1:15);
then check a data values shows 10x15
or
b= a(1:10,1:15);
then check b data values shows 10x15

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

질문:

2013년 11월 22일

댓글:

2013년 11월 22일

Community Treasure Hunt

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

Start Hunting!

Translated by