how to get outline of multiple shapes
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Asliddin Komilov
am 18 Dez. 2023
Beantwortet: Asliddin Komilov
am 4 Jan. 2024
Hi,
I have asked about it before
but the answer did not fit all my data, so I need help on this one too.
I have multiple shapes I need to merge into a single shape, because I have sets of shapes those I have to merge and compare with each other (put into a one plot). the set of data is attached and I can plot it like this:
plot(X(:, [1:end 1])', Y(:, [1:end 1])')
let me know, if you know how to do it, thanks.
2 Kommentare
Image Analyst
am 18 Dez. 2023
Do you require them to be shape objects or can the answer be a digital image?
Akzeptierte Antwort
Weitere Antworten (1)
Sulaymon Eshkabilov
am 19 Dez. 2023
Maybe you want to get something like this shape, e.g.:
load('Data.mat')
for ii=1:height(X)
PGON = polyshape(X(ii,:),Y(ii,:),'Simplify',true);
plot(PGON)
hold on
end
xlim([-3 3])
ylim([0, 0.2])
2 Kommentare
Siehe auch
Kategorien
Mehr zu Graphics Object Programming 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!