Func thar operates like repmat
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    yuval ohayon
 el 30 de Jul. de 2017
  
    
    
    
    
    Comentada: Jan
      
      
 el 1 de Ag. de 2017
            Hi i need to write in one code line function who does the same as repmat function Anyone's idea please :)
0 comentarios
Respuesta aceptada
  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
  Walter Roberson
      
      
 el 31 de Jul. de 2017
				Sorry, I meant to write,
MyRGBImage = MyGrayScaleImage(:,:, ones(1,3))
Más respuestas (1)
Ver también
Categorías
				Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


