Perfect circle instances in matlab
1 view (last 30 days)
Show older comments
Petr Hrobar
on 18 Mar 2019
Commented: Star Strider
on 19 Mar 2019
Hello,
how I can generate in matlab circle instances like I attached
0 Comments
Accepted Answer
Star Strider
on 18 Mar 2019
Try this:
a = linspace(0, 2*pi, 59);
x = cos(a);
y = sin(a);
figure
plot(x, y, 'ok', 'MarkerFaceColor','k')
axis equal
It should come close to reproducing the plot image you posted.
2 Comments
Star Strider
on 19 Mar 2019
My pleasure.
If my Answer helped you solve your problem, please Accept it!
More Answers (0)
See Also
Categories
Find more on Line 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!