No idea where to start with this question (very new to matlab):

  • #1
Write a Matlab function mycirc(c,r) that will plot the circle whose center is at c[x0,y0] and whose radius is r. Then plot 100 random circles with c,r chosen randomly from the interval 0 to 1.
 

Answers and Replies

  • #2
There are several ways to do this. One is to use the parametric equation for circle (think radius and iteration over angle), another is to use the rectangle command's curvature argument. Look up rand in help to see how you might choose c & r. Look up the for or while loops to see how you might create any given number of such circles.
 

Suggested for: No idea where to start with this question (very new to matlab):

Replies
1
Views
569
Replies
4
Views
539
Replies
4
Views
233
Replies
2
Views
790
Replies
1
Views
611
Replies
1
Views
852
Replies
9
Views
1K
Replies
1
Views
799
Replies
1
Views
567
Replies
6
Views
408
Back
Top