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

  • MATLAB
  • Thread starter gr33ndem0n
  • Start date
  • #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
188
1
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.
 

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

Replies
3
Views
1K
Replies
2
Views
3K
  • Last Post
Replies
4
Views
2K
Replies
1
Views
6K
Replies
6
Views
745
Replies
8
Views
34K
Replies
1
Views
960
Replies
3
Views
18K
Replies
2
Views
2K
Replies
3
Views
2K
Top