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

1 Ansicht (letzte 30 Tage)
hi i need to buil a image using the matrx. i ma new to matlab can you help me with this.

Akzeptierte Antwort

Davide Masiello
Davide Masiello am 8 Nov. 2022
A = repmat(linspace(0,1,1000),500,1);
A(220:280,:) = 0.5;
imshow(A)

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by