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 CenterFile Exchange 中查找有关 Image 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