MATLAB Answers


How Can I cancate the array [ ] R G B Values ?

on 3 Dec 2012

Hi Every body? How are you..?

I had run that following code I got the following Error...

??? Error using
==> cat
CAT argument dimensions are not consistent.
>>domr =
       6     7
  >> domg
domg =
>> domb
domb =

how cai I concatnate that values..?


Please any one help...

Thank You so much..


1 Answer

Answer by Walter Roberson
on 3 Dec 2012
 Accepted answer

The red layer has 2 values. The green and blue layers have 1 value each. What shape are you expecting the result to have? Are you expecting to copy the green and blue for each red ? And later when you have larger vectors and the mismatch becomes things like 17 red and 9 green and 9 blue ?

  1 Comment

Jan Simon
on 3 Dec 2012

Did I mention your crystal ball already? I thought it could be "right", "general" and "bottom".

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi test

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!