drawing point by point matlab using plot or another function instead of viscircle
1 view (last 30 days)
Show older comments
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 Comments
Constantino Carlos Reyes-Aldasoro
on 19 Jul 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.
Answers (0)
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!