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

2 views (last 30 days)
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...

Accepted Answer

ajith
ajith on 22 Nov 2013
Edited: ajith on 22 Nov 2013
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

More Answers (0)

Community Treasure Hunt

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

Start Hunting!