Func thar operates like repmat
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
yuval ohayon
am 30 Jul. 2017
Kommentiert: Jan
am 1 Aug. 2017
Hi i need to write in one code line function who does the same as repmat function Anyone's idea please :)
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 30 Jul. 2017
Hint:
Instead of writing
MyRGBImage = repmat(MyGrayScaleImage, 1, 1, 3)
I write
MyRGBImage = repmat(MyGrayScaleImage(:,:, ones(1,3))
2 Kommentare
Walter Roberson
am 31 Jul. 2017
Sorry, I meant to write,
MyRGBImage = MyGrayScaleImage(:,:, ones(1,3))
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Logical 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!