Plotting Sinusoidal Wave Graph on MatLab

조회 수: 1 (최근 30일)
cikalekli
cikalekli 2021년 5월 25일
댓글: William Rose 2021년 5월 25일
I want to plot the graph of this sinusoidal equation on matlab but I could not accomplished right...
Here is my sinusoidal wave equation:
v(t) = 5cos(1256t - pi/4)

채택된 답변

William Rose
William Rose 2021년 5월 25일
Start by figuring out a good time range. Since you have cos(1256t-pi/4), the period is , so let's plot for two periods, i.e. time=0 to 0.01:
t=0:.0005:0.01; %create vector of time values, with step size=0.0005
x=5*cos(1256*t-pi/4); %compute x(t)
plot(t,x,'r.-') %plot
Try it.
  댓글 수: 5
cikalekli
cikalekli 2021년 5월 25일
Now I got it how can I approach this form. You are truly perfect... Thank you a lot again
William Rose
William Rose 2021년 5월 25일
You're welcome, cikalekli.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by