Hi i need to write in one code line function who does the same as repmat function Anyone's idea please :)

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 30 Jul. 2017

0 Stimmen

Hint:
Instead of writing
MyRGBImage = repmat(MyGrayScaleImage, 1, 1, 3)
I write
MyRGBImage = repmat(MyGrayScaleImage(:,:, ones(1,3))

2 Kommentare

yuval ohayon
yuval ohayon am 31 Jul. 2017
Not what i ment,i need to change matrix without the repmat func
Sorry, I meant to write,
MyRGBImage = MyGrayScaleImage(:,:, ones(1,3))

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

yuval ohayon
yuval ohayon am 31 Jul. 2017

0 Stimmen

Not what i ment.. Without using repmat function..

1 Kommentar

Jan
Jan am 1 Aug. 2017
Please do not post comments in the section for answers.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Programming finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by