MATLAB: Func thar operates like repmat MATLAB Hi i need to write in one code line function who does the same as repmat function Anyone's idea please 🙂 Best Answer Hint:Instead of writingMyRGBImage = repmat(MyGrayScaleImage, 1, 1, 3)I writeMyRGBImage = repmat(MyGrayScaleImage(:,:, ones(1,3)) Related SolutionsMATLAB: How to change a 3 dimensional matrix to 2 dimensinal If A is your matrix, you can usesqueeze(A) MATLAB: Repmat N = 2; % The number of times each element will repeat... h2 = reshape(repmat(h,N,1),1,N*length(h)) Related QuestionMatrix manipulation and componentsNeed repmat help3-D matrix transposeRepmat with patternThe H.W questionRepmat function give error
Best Answer