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

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.

Risposte (1)

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

Categorie

Scopri di più su Graphics Performance in Centro assistenza e File Exchange

Richiesto:

il 24 Mar 2023

Risposto:

il 24 Mar 2023

Community Treasure Hunt

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

Start Hunting!

Translated by