question about sinc function ploting
조회 수: 1 (최근 30일)
이전 댓글 표시
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](https://www.mathworks.com/matlabcentral/answers/uploaded_files/237096/test.png)
댓글 수: 0
채택된 답변
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.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!