drawing point by point matlab using plot or another function instead of viscircle
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
omar Benamiar Messari
el 18 de Jul. de 2018
Comentada: omar Benamiar Messari
el 19 de Jul. de 2018
Hello, I need to draw point by point, but the points should be a little bit big so i already did a program and worked with viscircle, but i saw that visrcle can't allow us to fill in the circles so now i should change my methode so tried to use the plot but didn't work correctly can you suggest me any idea to change this program to another one using plot or line or what else. i'm working on a gui.
function start_Callback(hObject, eventdata, handles)
axes(handles.axes1)
axis(gca,'equal');
axis([0 120 0 (110)]);
for x=0:(distance/1000):(bounce/2)
y=a*x.^2 + hauteur;
p2=[x y];
p2_traj= viscircles(p2,0.6);
pause(0.0001);
delete(p2_traj);
if rebounce ==1 && y<= rebounce1
newrow=[rebounce1,0,0,0];
break;
end
end
4 comentarios
Constantino Carlos Reyes-Aldasoro
el 19 de Jul. de 2018
As mentioned, use plot and change the marker:
plot(x,y,'marker','o','markersize',20)
That should create a circle with a certain size. That is the easiest way to do it.
Respuestas (0)
Ver también
Categorías
Más información sobre Surface and Mesh 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!