How to find inverse of concatenate

2 Ansichten (letzte 30 Tage)
Nikhil Chourasia
Nikhil Chourasia am 12 Mär. 2015
Kommentiert: Roman Voronov am 9 Feb. 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

Akzeptierte Antwort

Guillaume
Guillaume am 12 Mär. 2015
r = rgb(:, :, 1);
g = rgb(:, :, 2);
b = rgb(:, :, 3);
  1 Kommentar
Roman Voronov
Roman Voronov am 9 Feb. 2019
how about programmatically, without doing each line manually?

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by