Effacer les filtres
Effacer les filtres

Func thar operates like repmat

3 vues (au cours des 30 derniers jours)
yuval ohayon
yuval ohayon le 30 Juil 2017
Commenté : Jan le 1 Août 2017
Hi i need to write in one code line function who does the same as repmat function Anyone's idea please :)

Réponse acceptée

Walter Roberson
Walter Roberson le 30 Juil 2017
Hint:
Instead of writing
MyRGBImage = repmat(MyGrayScaleImage, 1, 1, 3)
I write
MyRGBImage = repmat(MyGrayScaleImage(:,:, ones(1,3))
  2 commentaires
yuval ohayon
yuval ohayon le 31 Juil 2017
Not what i ment,i need to change matrix without the repmat func
Walter Roberson
Walter Roberson le 31 Juil 2017
Sorry, I meant to write,
MyRGBImage = MyGrayScaleImage(:,:, ones(1,3))

Connectez-vous pour commenter.

Plus de réponses (1)

yuval ohayon
yuval ohayon le 31 Juil 2017
Not what i ment.. Without using repmat function..
  1 commentaire
Jan
Jan le 1 Août 2017
Please do not post comments in the section for answers.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by