How to plot the functions x=cos(t) and y=sin(t) in a single graph?

I tried to do plot them but I wasn't confident since one of the functions is with respect to the x axis.
t=linspace(0,2*pi);
x=cos(t);
y=sin(t);

 Accepted Answer

What you gave is a parametric equation of circle. You just need to use plot. Read about it.
t=linspace(0,2*pi);
x=cos(t);
y=sin(t);
plot(x,y)
axis equal

More Answers (0)

Products

Release

R2022a

Tags

Asked:

on 13 Apr 2022

Answered:

on 13 Apr 2022

Community Treasure Hunt

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

Start Hunting!