Plotting voronoi tesselations without its seeds
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I am trying to get a picture of a voronoi tesselation and I am using the Voronoi command to do it. The problem I encounter is that this command plots the seeds that I fed to create the figure and I have not been able to figure out how to undo this.
0 Kommentare
Antworten (1)
Akira Agata
am 17 Mär. 2020
How about the following?
% Seeds
x = gallery('uniformdata',[1 10],0);
y = gallery('uniformdata',[1 10],1);
% Calculate Voronoi diagram
[vx,vy] = voronoi(x,y);
% Visualize the result
figure
plot(vx,vy,'b-')
% Uncomment this part, if you want to show the seeds
% hold on
% plot(x,y,'rx')
xlim([min(x) max(x)])
ylim([min(y) max(y)])
0 Kommentare
Siehe auch
Kategorien
Mehr zu Voronoi Diagram finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!