Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Experiment-6

Aim
Write a MATLAB program to draw a circle of radius 5.
Code
t=0:pi/64:2*pi;
r=5;
x=r*cos(t);
y=r*sin(t);
plot(x,y,'c')

Output

5
4
3
2
1
0
-1
-2
-3
-4
-5
-5

-4

-3

-2

-1

You might also like