필터 지우기
필터 지우기

Func thar operates like repmat

조회 수: 1 (최근 30일)
yuval ohayon
yuval ohayon 2017년 7월 30일
댓글: Jan 2017년 8월 1일
Hi i need to write in one code line function who does the same as repmat function Anyone's idea please :)

채택된 답변

Walter Roberson
Walter Roberson 2017년 7월 30일
Hint:
Instead of writing
MyRGBImage = repmat(MyGrayScaleImage, 1, 1, 3)
I write
MyRGBImage = repmat(MyGrayScaleImage(:,:, ones(1,3))
  댓글 수: 2
yuval ohayon
yuval ohayon 2017년 7월 31일
Not what i ment,i need to change matrix without the repmat func
Walter Roberson
Walter Roberson 2017년 7월 31일
Sorry, I meant to write,
MyRGBImage = MyGrayScaleImage(:,:, ones(1,3))

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

yuval ohayon
yuval ohayon 2017년 7월 31일
Not what i ment.. Without using repmat function..
  댓글 수: 1
Jan
Jan 2017년 8월 1일
Please do not post comments in the section for answers.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Logical에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by