How can I fill everything below the white thing line in this image?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Love Matlab
am 17 Jun. 2020
Kommentiert: Image Analyst
am 18 Jun. 2020
In the image I have attached, how can I fill the entire area below the thin white line plotted? Thank you!

0 Kommentare
Akzeptierte Antwort
Matt J
am 17 Jun. 2020
By adapting the following smaller example,
A =
1 0 0 0 0 0 0 0
0 1 0 0 0 0 0 0
0 0 1 0 0 0 0 0
0 0 0 1 0 0 0 0
0 0 0 0 1 0 0 0
0 0 0 0 0 1 1 1
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
>> B=cummax(A,1)
B =
1 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0
1 1 1 0 0 0 0 0
1 1 1 1 0 0 0 0
1 1 1 1 1 0 0 0
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1
1 Kommentar
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!