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

2 次查看(过去 30 天)
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.

回答(1 个)

KSSV
KSSV 2023-3-24
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

类别

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by