Func thar operates like repmat
    5 views (last 30 days)
  
       Show older comments
    
Hi i need to write in one code line function who does the same as repmat function Anyone's idea please :)
0 Comments
Accepted Answer
  Walter Roberson
      
      
 on 30 Jul 2017
        Hint:
Instead of writing
MyRGBImage = repmat(MyGrayScaleImage, 1, 1, 3)
I write
MyRGBImage = repmat(MyGrayScaleImage(:,:, ones(1,3))
2 Comments
  Walter Roberson
      
      
 on 31 Jul 2017
				Sorry, I meant to write,
MyRGBImage = MyGrayScaleImage(:,:, ones(1,3))
More Answers (1)
See Also
Categories
				Find more on Creating and Concatenating Matrices in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

