How to plot the function y=sin(t)/t for -4*pi<x<4*pi?
13 views (last 30 days)
Show older comments
CCF2017 MIT on 2 Apr 2019
Answered: Shubham Kumar Thakur on 7 Dec 2020
I m having trouble finding the plot for this function in matlab, with no plot as a result. I tried the following code.
t=-4*pi : 0.01 : 4*pi;
but i m not getting output.
Stephan on 2 Apr 2019
at least two ways possible:
t = linspace(-4*pi,4*pi);
y = sin(t)./t;
Therefore - as Torsten aready mentioned - use elementwise operator:
Shubham Kumar Thakur on 7 Dec 2020
Find more on Multidimensional Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!