how to draw circles in one plot
Show older comments
Problem 1. Program a function that takes as input a n × n matrix A
and plots all the own circles in the same plot
We need some comments on the programming in Exercise 1:
• shape (A) returns the dimensions of the matrix A.
• In Matplotlib, subsequent plots automatically appear in the same figure, so that
you do not need a feature ala hold on over.
• The axis (‘equal’) command in Matplotlib makes sure that the circles actually
looks like circles.
In addition, the following function will be useful.
Answers (1)
Image Analyst
on 18 Oct 2021
0 votes
FAQ:
Or you can use the viscircles() function to draw circles.
For your code/image, you probably want r(1) for the x center and r(2) for the y center in your code for the plot().
Not sure what your question, if any, is. You did not explicitly ask a question.
Categories
Find more on 2-D and 3-D 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!