how to draw circles in one plot

2 vues (au cours des 30 derniers jours)
Arman Shaghaghi
Arman Shaghaghi le 18 Oct 2021
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.

Réponses (1)

Image Analyst
Image Analyst le 18 Oct 2021
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.

Catégories

En savoir plus sur Introduction to Installation and Licensing dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by