Build a matrix with a gradual value of intensity and an horizontal line with a constant value

2 ビュー (過去 30 日間)
hi i need to buil a image using the matrx. i ma new to matlab can you help me with this.

採用された回答

Davide Masiello
Davide Masiello 2022 年 11 月 8 日
A = repmat(linspace(0,1,1000),500,1);
A(220:280,:) = 0.5;
imshow(A)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing and Computer Vision についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by