How to find inverse of concatenate

2 visualizaciones (últimos 30 días)
Nikhil Chourasia
Nikhil Chourasia el 12 de Mzo. de 2015
Comentada: Roman Voronov el 9 de Feb. de 2019
Suppose i have a matrix
r=[1 2 3]
g=[4 5 6]
b=[7 8 9]
rgb=cat(3,r,g,b)
Now how could I recover r,g,b matrix from rgb matrix

Respuesta aceptada

Guillaume
Guillaume el 12 de Mzo. de 2015
r = rgb(:, :, 1);
g = rgb(:, :, 2);
b = rgb(:, :, 3);
  1 comentario
Roman Voronov
Roman Voronov el 9 de Feb. de 2019
how about programmatically, without doing each line manually?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices 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