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.

Antworten (1)

Image Analyst
Image Analyst am 18 Okt. 2021

0 Stimmen

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.

Kategorien

Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 18 Okt. 2021

Beantwortet:

am 18 Okt. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by