How to swapping values in matrix row ?

2 visualizaciones (últimos 30 días)
Sajith Galgamuwa
Sajith Galgamuwa el 20 de Abr. de 2016
Comentada: Sajith Galgamuwa el 20 de Abr. de 2016
given matrix eg:-
1 6 6 8
9 5 7 2
it should be chang as
1 6 6 8
2 7 5 9

Respuesta aceptada

Andrei Bobrov
Andrei Bobrov el 20 de Abr. de 2016
a=[1 6 6 8
9 5 7 2];
a(2,:) = fliplr(a(2,:));

Más respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by