How to find inverse of concatenate

2 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Guillaume
Guillaume il 12 Mar 2015
r = rgb(:, :, 1);
g = rgb(:, :, 2);
b = rgb(:, :, 3);
  1 Commento
Roman Voronov
Roman Voronov il 9 Feb 2019
how about programmatically, without doing each line manually?

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by