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...

 采纳的回答

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 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by