problem with function sinc

111 views (last 30 days)
dert sgt
dert sgt on 27 Mar 2020
Edited: dert sgt on 27 Mar 2020
hello everyone
i have a problem with the function sinc (i'm not so expert i started to use mathlab 3 months ago) and i wrote this:
x = 0:pi/100:2*pi;
y=sinc(x);
but i have an error:
Undefined function 'sinc' for input arguments of type 'double'.
someone can help me? thanks

Accepted Answer

Birdman
Birdman on 27 Mar 2020
Edited: Birdman on 27 Mar 2020
Adapt its formula as follows:
x = 0:pi/100:2*pi;
y=sin(pi*x)./(pi*x);%sinc function
plot(y)
  7 Comments
dert sgt
dert sgt on 27 Mar 2020
thanks so much again you're fantastic!

Sign in to comment.

More Answers (0)

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!