Fill area inside 4 connected lines in a plot
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Stefan Lang
el 2 de Oct. de 2020
Comentada: Stefan Lang
el 12 de Oct. de 2020
I have a figure, similar to a rectangle. It consists of 4 lines. Top and bottom line is just a connection of the two bottom points, respectively two top points. But left and right line is a matrix with x and y values, resulting from a curve fit between the left top and bottom point, same for the right side. Now i want a matrix to be filled with zeros outside of the rectangles coordinates and with ones inside the rectangle (see picture below).
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/369796/image.jpeg)
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Scatter Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!