82
0 1 0 3 4
0 0 0
-2 1
0 0 0
-1 1
0 0 0 0
-1
RESHAPE - matrisa o’lchamini o’zgartishni amalga oshirdi.
>> A=[-1 0 2 0; 0 1 2 -1; -1 -2 -3 2]
A =
-1 0 2 0
0
1 2
-1
-1 -2
-3 2
>>
reshape(A,2,6) % matritsa elementlarining soniga qarab ixtiyoriy
o`lchamdagi matritsani hosil qiladi.
ans =
-1
-1 1 2
-3
-1
0 0
-2 2 0 2