Group Abstract Group Abstract

Message Boards Message Boards

0
|
7.7K Views
|
3 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Sinc function definition in Wolfram Language

Posted 5 years ago

Why is the sinc function in Mathematica is different from Matlab

e.g. sinc(pi/2) in Matlab gives -0.1977 however in Mathematica it gives Sinc[Pi/2] = -0.0544021

Also the plotting results were totally different. In Matlab here is the code clc clear all close all

t=linspace(-10,10,2000+1); t(end)=[]; y=sinc(t); figure hold on plot(t,y)

///////////////////////////////////////////////////// in Mathematica Plot[Sinc[x],{x,-10,10}] enter image description here

enter image description here

POSTED BY: Sheng Dai
3 Replies

Mathematica uses radians as the input and Matlab uses a “Normalized” sinc function. Matlab has a unitless input and multiplies it by Pi to get radians. Matlab definition is Sin(pix)/(pix).

Regards,

Neil

POSTED BY: Neil Singer

Doing some minimal research might help, e.g. Wikipedia !

POSTED BY: Henrik Schachner
POSTED BY: Mariusz Iwaniuk
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard