Fill area inside 4 connected lines in a plot
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Stefan Lang
am 2 Okt. 2020
Kommentiert: Stefan Lang
am 12 Okt. 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)
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Scatter Plots 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!