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

1 visualizzazione (ultimi 30 giorni)
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...

Risposta accettata

ajith
ajith il 22 Nov 2013
Modificato: ajith il 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

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by