sinc + cos function plot
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
민건 김
el 13 de Mayo de 2023



Respectively, codes, matlab plot, and graphing site plot.
Even though I made same argument, matlab plot gives wrong plot. What's wrong? I need your help.
3 comentarios
James Tursa
el 13 de Mayo de 2023
Please post code as regular text highlighed by the CODE button. We can't run images.
Respuesta aceptada
VBBV
el 13 de Mayo de 2023
Delete pi from below line
% delete pi from the below line
a = (-4:0.001:4);
p = 10;
f = p*sinc(a) + cos(a)
plot(a,f)
5 comentarios
Walter Roberson
el 13 de Mayo de 2023
Note however
x = 0
sinc(x)
sin(x)./x
Stephen23
el 13 de Mayo de 2023
Editada: Stephen23
el 13 de Mayo de 2023
"By definition sinc can be written as (sinx / x) "
Except in the field of digital signal processing where it is commonly defined as
sin(pi*x) / (pi*x)
which is the definition that SINC uses, SINC being part of the Signal Processing toolbox:
"In the context of digital signal processing, we often use an alternative form in which the independent variable is multiplied by π":
" The sinc function is defined as: sinc(a) = sin(πa)/(πa)":
See also the note given here: https://numpy.org/doc/stable/reference/generated/numpy.sinc.html
Más respuestas (0)
Ver también
Categorías
Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


