フィルターのクリア

Func thar operates like repmat

3 ビュー (過去 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 Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by