Given x= rcos(𝛼) ; y=rsin(α); write MATLAB program to plot a circle of unit radius (r=1).

3 views (last 30 days)
Given x= rcos(𝛼) ;
y=rsin(α); write MATLAB program to plot a circle of unit radius (r=1).
Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.
r = 1
Error using alpha
Too many output arguments.

Answers (1)

KSSV
KSSV on 24 Mar 2023
This is a simple homework... You should do it your self. Read about:
  1. Linspace for making angle between 0 to 360 i.e. 0 to 2*pi
  2. Define r i,e, r= 1
  3. REad about sin and cos.
  4. DEfine x = r*cos(theta); y = r*sin(theta)
  5. Read about plot. Use thhis and plot the circel.
  6. Read about axis

Community Treasure Hunt

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

Start Hunting!