How can I fill everything below the white thing line in this image?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Love Matlab
el 17 de Jun. de 2020
Comentada: Image Analyst
el 18 de Jun. de 2020
In the image I have attached, how can I fill the entire area below the thin white line plotted? Thank you!
0 comentarios
Respuesta aceptada
Matt J
el 17 de Jun. de 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 comentario
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!