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.

답변 (1개)

Image Analyst
Image Analyst 2021년 10월 18일

0 개 추천

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.

카테고리

도움말 센터File Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

질문:

2021년 10월 18일

답변:

2021년 10월 18일

Community Treasure Hunt

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

Start Hunting!

Translated by