Func thar operates like repmat

5 visualizzazioni (ultimi 30 giorni)
yuval ohayon
yuval ohayon il 30 Lug 2017
Commentato: Jan il 1 Ago 2017
Hi i need to write in one code line function who does the same as repmat function Anyone's idea please :)

Risposta accettata

Walter Roberson
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
yuval ohayon
yuval ohayon il 31 Lug 2017
Not what i ment,i need to change matrix without the repmat func
Walter Roberson
Walter Roberson il 31 Lug 2017
Sorry, I meant to write,
MyRGBImage = MyGrayScaleImage(:,:, ones(1,3))

Accedi per commentare.

Più risposte (1)

yuval ohayon
yuval ohayon il 31 Lug 2017
Not what i ment.. Without using repmat function..
  1 Commento
Jan
Jan il 1 Ago 2017
Please do not post comments in the section for answers.

Accedi per commentare.

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by