Problem with patch function
Mostra commenti meno recenti
Hi,
I seem to be running into a common issue with the patch function but cant work out where i'm going wrong.
I want to simply fill the area between two lines, in this case, beach profiles. I've done this succesfully for my other beaches but seem to have issues with the one I've shared. Data and faulty figure attached.
Thanks in advance!

Oli

Risposta accettata
Più risposte (1)
It is not clear what result you would expect when the data overlaps and one of them has a "twist" ?
load('XZ.mat')
fill(X(1,:),Z(1,:), 'r', 'facealpha', 0.5)
hold on
fill(X(2,:),Z(2,:), 'b', 'facealpha', 0.5)
hold off
1 Commento
Oliver Billson
il 23 Giu 2021
Categorie
Scopri di più su Image Arithmetic in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


