Curso de Matlab

Page 36

Para Cambiar Las Filas De La Matriz >> b=a(3:-1:1,1:3) b= 7 4 1

8 5 2

9 6 3

>> c=a(1:3,3:-1:1) c= 3 6 9

2 5 8

1 4 7

Para Cambiar Filas Y Columnas >> d=a(3:-1:1,3:-1:1) d= 9 6 3

8 5 2

7 4 1

>> %Para tomar todos los elementos de una fila >> e=a(:,3:-1:1) e= 3 6 9

2 5 8

1 4 7


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.