필터 지우기
필터 지우기

Plotting cos functions in matlab

조회 수: 85 (최근 30일)
mandy
mandy 2015년 3월 22일
답변: Rajvir Dargan 2021년 11월 25일
Can someone tell me how you would plot a cos function into matlab so that you can see a few periods of the graph? I am trying to graph
v(t)= 5.6576cos(377t+44.9945)
where the 44.9945 is the angle for the phase. I am also trying to get
v1(t)= 10cos(377t)
for a few periods

채택된 답변

the cyclist
the cyclist 2015년 3월 23일
omega = 377;
t = (0:0.01:(6*pi))/omega;
v = 5.6576*cos(omega*t+44.9945)
v1 = 10*cos(omega*t)
figure
h = plot(t,v,t,v1)
legend(h,{'v','v1'})

추가 답변 (1개)

Rajvir Dargan
Rajvir Dargan 2021년 11월 25일
omega = 377;
t = (0:0.01:(6*pi))/omega;
v = 5.6576*cos(omega*t+44.9945)
v1 = 10*cos(omega*t)
figure
h = plot(t,v,t,v1)
legend(h,{'v','v1'})

카테고리

Help CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by