question about sinc function ploting

조회 수: 1 (최근 30일)
ADNAN KIRAL
ADNAN KIRAL 2019년 9월 5일
댓글: Star Strider 2019년 9월 5일
hi
I want to move my "sinc" function from negative to positive side. The function is;
t=-40.955:0.005:40.960;
u=(200/pi)*(15*sinc(15*t)-3*sinc(3*t));
It needs to start from "0". would you please help me with that? how can i move my axis in "sinc" function
like this plot. Thanks in advance.
test.PNG

채택된 답변

Star Strider
Star Strider 2019년 9월 5일
To move it in the plot, simply add the appropriate value to the ‘t’ vector:
t=-40.955:0.005:40.960;
u=(200/pi)*(15*sinc(15*t)-3*sinc(3*t));
figure
plot(t-min(t), u)
grid
Experiment to get the result you want.
  댓글 수: 2
ADNAN KIRAL
ADNAN KIRAL 2019년 9월 5일
thanks.
Star Strider
Star Strider 2019년 9월 5일
As always, my pleasure.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by