MATLAB: Change line type when figure handle is known

figure childred

I have created a plot in a figure window. I want to change the line type to circles.
I know the figure handle. Let's say it's gcf. Can I use this to modify the plot or line? I figure they are children of the figure so I should be able to use
set(gcf, child:plot, child:line, 'o')
… something along those lines. I'm a newbie. How should this look?

Best Answer

Does that do what you want?
t = 0:0.1:10;
y = sin(t);
h = plot(t,y);
set(h,'Marker','o');
set(h,'LineStyle','none');
Arnaud