Func thar operates like repmat

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

 Respuesta aceptada

Walter Roberson
Walter Roberson el 30 de Jul. de 2017
Hint:
Instead of writing
MyRGBImage = repmat(MyGrayScaleImage, 1, 1, 3)
I write
MyRGBImage = repmat(MyGrayScaleImage(:,:, ones(1,3))

2 comentarios

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

Iniciar sesión para comentar.

Más respuestas (1)

yuval ohayon
yuval ohayon el 31 de Jul. de 2017

0 votos

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

1 comentario

Jan
Jan el 1 de Ag. de 2017
Please do not post comments in the section for answers.

Iniciar sesión para comentar.

Categorías

Más información sobre Programming en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 30 de Jul. de 2017

Comentada:

Jan
el 1 de Ag. de 2017

Community Treasure Hunt

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

Start Hunting!

Translated by