Func thar operates like repmat
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Hi i need to write in one code line function who does the same as repmat function Anyone's idea please :)
0 Commenti
Risposta accettata
Walter Roberson
il 30 Lug 2017
Hint:
Instead of writing
MyRGBImage = repmat(MyGrayScaleImage, 1, 1, 3)
I write
MyRGBImage = repmat(MyGrayScaleImage(:,:, ones(1,3))
2 Commenti
Walter Roberson
il 31 Lug 2017
Sorry, I meant to write,
MyRGBImage = MyGrayScaleImage(:,:, ones(1,3))
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Logical 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!