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

采纳的回答

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.

更多回答(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