Func thar operates like repmat
    5 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
Hi i need to write in one code line function who does the same as repmat function Anyone's idea please :)
0 commentaires
Réponse acceptée
  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
  Walter Roberson
      
      
 le 31 Juil 2017
				Sorry, I meant to write,
MyRGBImage = MyGrayScaleImage(:,:, ones(1,3))
Plus de réponses (1)
Voir également
Catégories
				En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!