Calculating value of $text{sinc}(x)$, WolframAlpha and MATLAB give two different answers.
$begingroup$
I need to evaluate the following:
$$frac{2}{3}text{sinc}bigg(frac{2pi}{3}(n-4)bigg)-frac{1}{3}text{sinc}bigg(frac{pi}{3}(n-4)bigg)$$
for $n=[0,...,8]$
I don't have the sinc function in my casio fx so I wanted to use the fact that $text{sinc}(x)=frac{text{sin}(x)}{x}$ and that $text{sinc}(0)=1$
Hence, for $n=0$ I got
$$frac{2}{3}text{sinc}bigg(frac{2pi}{3}(-4)bigg)-frac{1}{3}text{sinc}bigg(frac{pi}{3}(-4)bigg)=0.1378....$$
This seems to agree with wolfram alpha:

But then I checked the mark scheme on my past paper that the question is taken from, and there it says that I should've got $0.0093$ so i put it in MATLAB:

...and it also says $0.0093$.
So... which one of the two is correct? What's going on?
trigonometry matlab wolfram-alpha
$endgroup$
|
show 2 more comments
$begingroup$
I need to evaluate the following:
$$frac{2}{3}text{sinc}bigg(frac{2pi}{3}(n-4)bigg)-frac{1}{3}text{sinc}bigg(frac{pi}{3}(n-4)bigg)$$
for $n=[0,...,8]$
I don't have the sinc function in my casio fx so I wanted to use the fact that $text{sinc}(x)=frac{text{sin}(x)}{x}$ and that $text{sinc}(0)=1$
Hence, for $n=0$ I got
$$frac{2}{3}text{sinc}bigg(frac{2pi}{3}(-4)bigg)-frac{1}{3}text{sinc}bigg(frac{pi}{3}(-4)bigg)=0.1378....$$
This seems to agree with wolfram alpha:

But then I checked the mark scheme on my past paper that the question is taken from, and there it says that I should've got $0.0093$ so i put it in MATLAB:

...and it also says $0.0093$.
So... which one of the two is correct? What's going on?
trigonometry matlab wolfram-alpha
$endgroup$
1
$begingroup$
There is a problem for $n=4$.
$endgroup$
– Michael Rozenberg
Dec 28 '18 at 18:16
1
$begingroup$
Matlab includes a factor of Pi in it's definition of sinc. mathworks.com/help/signal/ref/sinc.html
$endgroup$
– Josh B.
Dec 28 '18 at 18:18
$begingroup$
@JoshB. That is criminal. I need to write an angry email to Matlab.
$endgroup$
– DudeMan
Dec 28 '18 at 18:19
$begingroup$
I see. They use something called normalized sinc. And it would make senses cause Wiki says: In digital signal processing and information theory, the normalized sinc function is commonly defined for x ≠ 0 by bla bla bla. And the course I am doing is signal processing.
$endgroup$
– Scavenger23
Dec 28 '18 at 18:20
$begingroup$
This function is not part of core Matlab but rather the Signal Processing Toolbox. As @EeveeTrainer points out below, this normalizedsincfunction is commonly used in signal processing applications that this toolbox was designed for. You can easily create a non-normalized version, e.g.:sinc2=@(x)sinc(x/pi);.
$endgroup$
– horchler
Dec 28 '18 at 20:13
|
show 2 more comments
$begingroup$
I need to evaluate the following:
$$frac{2}{3}text{sinc}bigg(frac{2pi}{3}(n-4)bigg)-frac{1}{3}text{sinc}bigg(frac{pi}{3}(n-4)bigg)$$
for $n=[0,...,8]$
I don't have the sinc function in my casio fx so I wanted to use the fact that $text{sinc}(x)=frac{text{sin}(x)}{x}$ and that $text{sinc}(0)=1$
Hence, for $n=0$ I got
$$frac{2}{3}text{sinc}bigg(frac{2pi}{3}(-4)bigg)-frac{1}{3}text{sinc}bigg(frac{pi}{3}(-4)bigg)=0.1378....$$
This seems to agree with wolfram alpha:

But then I checked the mark scheme on my past paper that the question is taken from, and there it says that I should've got $0.0093$ so i put it in MATLAB:

...and it also says $0.0093$.
So... which one of the two is correct? What's going on?
trigonometry matlab wolfram-alpha
$endgroup$
I need to evaluate the following:
$$frac{2}{3}text{sinc}bigg(frac{2pi}{3}(n-4)bigg)-frac{1}{3}text{sinc}bigg(frac{pi}{3}(n-4)bigg)$$
for $n=[0,...,8]$
I don't have the sinc function in my casio fx so I wanted to use the fact that $text{sinc}(x)=frac{text{sin}(x)}{x}$ and that $text{sinc}(0)=1$
Hence, for $n=0$ I got
$$frac{2}{3}text{sinc}bigg(frac{2pi}{3}(-4)bigg)-frac{1}{3}text{sinc}bigg(frac{pi}{3}(-4)bigg)=0.1378....$$
This seems to agree with wolfram alpha:

But then I checked the mark scheme on my past paper that the question is taken from, and there it says that I should've got $0.0093$ so i put it in MATLAB:

...and it also says $0.0093$.
So... which one of the two is correct? What's going on?
trigonometry matlab wolfram-alpha
trigonometry matlab wolfram-alpha
edited Dec 29 '18 at 0:01
Somos
14k11235
14k11235
asked Dec 28 '18 at 18:10
Scavenger23Scavenger23
544218
544218
1
$begingroup$
There is a problem for $n=4$.
$endgroup$
– Michael Rozenberg
Dec 28 '18 at 18:16
1
$begingroup$
Matlab includes a factor of Pi in it's definition of sinc. mathworks.com/help/signal/ref/sinc.html
$endgroup$
– Josh B.
Dec 28 '18 at 18:18
$begingroup$
@JoshB. That is criminal. I need to write an angry email to Matlab.
$endgroup$
– DudeMan
Dec 28 '18 at 18:19
$begingroup$
I see. They use something called normalized sinc. And it would make senses cause Wiki says: In digital signal processing and information theory, the normalized sinc function is commonly defined for x ≠ 0 by bla bla bla. And the course I am doing is signal processing.
$endgroup$
– Scavenger23
Dec 28 '18 at 18:20
$begingroup$
This function is not part of core Matlab but rather the Signal Processing Toolbox. As @EeveeTrainer points out below, this normalizedsincfunction is commonly used in signal processing applications that this toolbox was designed for. You can easily create a non-normalized version, e.g.:sinc2=@(x)sinc(x/pi);.
$endgroup$
– horchler
Dec 28 '18 at 20:13
|
show 2 more comments
1
$begingroup$
There is a problem for $n=4$.
$endgroup$
– Michael Rozenberg
Dec 28 '18 at 18:16
1
$begingroup$
Matlab includes a factor of Pi in it's definition of sinc. mathworks.com/help/signal/ref/sinc.html
$endgroup$
– Josh B.
Dec 28 '18 at 18:18
$begingroup$
@JoshB. That is criminal. I need to write an angry email to Matlab.
$endgroup$
– DudeMan
Dec 28 '18 at 18:19
$begingroup$
I see. They use something called normalized sinc. And it would make senses cause Wiki says: In digital signal processing and information theory, the normalized sinc function is commonly defined for x ≠ 0 by bla bla bla. And the course I am doing is signal processing.
$endgroup$
– Scavenger23
Dec 28 '18 at 18:20
$begingroup$
This function is not part of core Matlab but rather the Signal Processing Toolbox. As @EeveeTrainer points out below, this normalizedsincfunction is commonly used in signal processing applications that this toolbox was designed for. You can easily create a non-normalized version, e.g.:sinc2=@(x)sinc(x/pi);.
$endgroup$
– horchler
Dec 28 '18 at 20:13
1
1
$begingroup$
There is a problem for $n=4$.
$endgroup$
– Michael Rozenberg
Dec 28 '18 at 18:16
$begingroup$
There is a problem for $n=4$.
$endgroup$
– Michael Rozenberg
Dec 28 '18 at 18:16
1
1
$begingroup$
Matlab includes a factor of Pi in it's definition of sinc. mathworks.com/help/signal/ref/sinc.html
$endgroup$
– Josh B.
Dec 28 '18 at 18:18
$begingroup$
Matlab includes a factor of Pi in it's definition of sinc. mathworks.com/help/signal/ref/sinc.html
$endgroup$
– Josh B.
Dec 28 '18 at 18:18
$begingroup$
@JoshB. That is criminal. I need to write an angry email to Matlab.
$endgroup$
– DudeMan
Dec 28 '18 at 18:19
$begingroup$
@JoshB. That is criminal. I need to write an angry email to Matlab.
$endgroup$
– DudeMan
Dec 28 '18 at 18:19
$begingroup$
I see. They use something called normalized sinc. And it would make senses cause Wiki says: In digital signal processing and information theory, the normalized sinc function is commonly defined for x ≠ 0 by bla bla bla. And the course I am doing is signal processing.
$endgroup$
– Scavenger23
Dec 28 '18 at 18:20
$begingroup$
I see. They use something called normalized sinc. And it would make senses cause Wiki says: In digital signal processing and information theory, the normalized sinc function is commonly defined for x ≠ 0 by bla bla bla. And the course I am doing is signal processing.
$endgroup$
– Scavenger23
Dec 28 '18 at 18:20
$begingroup$
This function is not part of core Matlab but rather the Signal Processing Toolbox. As @EeveeTrainer points out below, this normalized
sinc function is commonly used in signal processing applications that this toolbox was designed for. You can easily create a non-normalized version, e.g.: sinc2=@(x)sinc(x/pi);.$endgroup$
– horchler
Dec 28 '18 at 20:13
$begingroup$
This function is not part of core Matlab but rather the Signal Processing Toolbox. As @EeveeTrainer points out below, this normalized
sinc function is commonly used in signal processing applications that this toolbox was designed for. You can easily create a non-normalized version, e.g.: sinc2=@(x)sinc(x/pi);.$endgroup$
– horchler
Dec 28 '18 at 20:13
|
show 2 more comments
2 Answers
2
active
oldest
votes
$begingroup$
As it happens, there are apparently two different conventions for what the $text{sinc}(x)$ function actually denotes in terms of the $sin(x)$ function. (I ran into this same confusion on my class on Fourier analysis.) The conventions you might see are
$$text{sinc}(x) = frac{sin(x)}{x} ;;; text{or} ;;; text{sinc}(x) = frac{sin(pi x)}{pi x}$$
The latter is known as the "normalized sinc function," per Wikipedia. I don't know much about which is used more when, so I'll leave you with the Wikipedia article in that respect.
Checking your functions if interpreted in the latter way, i.e. for $n=0$
$$frac{2}{3} left( frac{-3}{8pi^2} right) sin bigg(frac{-8pi^2}{3}bigg)-frac{1}{3} left( frac{-3}{4pi^2} right) sin bigg(frac{-4pi^2}{3}bigg)$$
Wolfram Alpha gives a value of $0.0093...$, in agreement with your MATLAB answer. Indeed, as noted by Josh B. in the comments, MATLAB uses the latter convention.
I would assume, then, this is the source of the discrepancy.
$endgroup$
$begingroup$
Yeah I had a read about it now. Looks like I need to have a discussion with my professor. Couple of weeks ago he defines it in a "standard way" and then suddenly in the past paper it is in the "normalized way".
$endgroup$
– Scavenger23
Dec 28 '18 at 18:26
add a comment |
$begingroup$
Matlab defines
$$ mathrm{sinc}_{text{Matlab}} = begin{cases}
frac{sin(pi t)}{pi t} & t neq 0, \
1 & t = 0
end{cases} text{.} $$
Wolfram (in the Details section) and the rest of the world define
$$ mathrm{sinc}_{text{everyone else}} = begin{cases}
frac{sin t}{t} & t neq 0, \
1 & t = 0
end{cases} text{.} $$
Using Matlab's nonstandard definition of this function, the value of your $n=0$ expression is $0.009321942713359250447 dots$.
$endgroup$
$begingroup$
Yup. Looks like matlab is a rebel.
$endgroup$
– Scavenger23
Dec 28 '18 at 18:37
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3055154%2fcalculating-value-of-textsincx-wolframalpha-and-matlab-give-two-differen%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
As it happens, there are apparently two different conventions for what the $text{sinc}(x)$ function actually denotes in terms of the $sin(x)$ function. (I ran into this same confusion on my class on Fourier analysis.) The conventions you might see are
$$text{sinc}(x) = frac{sin(x)}{x} ;;; text{or} ;;; text{sinc}(x) = frac{sin(pi x)}{pi x}$$
The latter is known as the "normalized sinc function," per Wikipedia. I don't know much about which is used more when, so I'll leave you with the Wikipedia article in that respect.
Checking your functions if interpreted in the latter way, i.e. for $n=0$
$$frac{2}{3} left( frac{-3}{8pi^2} right) sin bigg(frac{-8pi^2}{3}bigg)-frac{1}{3} left( frac{-3}{4pi^2} right) sin bigg(frac{-4pi^2}{3}bigg)$$
Wolfram Alpha gives a value of $0.0093...$, in agreement with your MATLAB answer. Indeed, as noted by Josh B. in the comments, MATLAB uses the latter convention.
I would assume, then, this is the source of the discrepancy.
$endgroup$
$begingroup$
Yeah I had a read about it now. Looks like I need to have a discussion with my professor. Couple of weeks ago he defines it in a "standard way" and then suddenly in the past paper it is in the "normalized way".
$endgroup$
– Scavenger23
Dec 28 '18 at 18:26
add a comment |
$begingroup$
As it happens, there are apparently two different conventions for what the $text{sinc}(x)$ function actually denotes in terms of the $sin(x)$ function. (I ran into this same confusion on my class on Fourier analysis.) The conventions you might see are
$$text{sinc}(x) = frac{sin(x)}{x} ;;; text{or} ;;; text{sinc}(x) = frac{sin(pi x)}{pi x}$$
The latter is known as the "normalized sinc function," per Wikipedia. I don't know much about which is used more when, so I'll leave you with the Wikipedia article in that respect.
Checking your functions if interpreted in the latter way, i.e. for $n=0$
$$frac{2}{3} left( frac{-3}{8pi^2} right) sin bigg(frac{-8pi^2}{3}bigg)-frac{1}{3} left( frac{-3}{4pi^2} right) sin bigg(frac{-4pi^2}{3}bigg)$$
Wolfram Alpha gives a value of $0.0093...$, in agreement with your MATLAB answer. Indeed, as noted by Josh B. in the comments, MATLAB uses the latter convention.
I would assume, then, this is the source of the discrepancy.
$endgroup$
$begingroup$
Yeah I had a read about it now. Looks like I need to have a discussion with my professor. Couple of weeks ago he defines it in a "standard way" and then suddenly in the past paper it is in the "normalized way".
$endgroup$
– Scavenger23
Dec 28 '18 at 18:26
add a comment |
$begingroup$
As it happens, there are apparently two different conventions for what the $text{sinc}(x)$ function actually denotes in terms of the $sin(x)$ function. (I ran into this same confusion on my class on Fourier analysis.) The conventions you might see are
$$text{sinc}(x) = frac{sin(x)}{x} ;;; text{or} ;;; text{sinc}(x) = frac{sin(pi x)}{pi x}$$
The latter is known as the "normalized sinc function," per Wikipedia. I don't know much about which is used more when, so I'll leave you with the Wikipedia article in that respect.
Checking your functions if interpreted in the latter way, i.e. for $n=0$
$$frac{2}{3} left( frac{-3}{8pi^2} right) sin bigg(frac{-8pi^2}{3}bigg)-frac{1}{3} left( frac{-3}{4pi^2} right) sin bigg(frac{-4pi^2}{3}bigg)$$
Wolfram Alpha gives a value of $0.0093...$, in agreement with your MATLAB answer. Indeed, as noted by Josh B. in the comments, MATLAB uses the latter convention.
I would assume, then, this is the source of the discrepancy.
$endgroup$
As it happens, there are apparently two different conventions for what the $text{sinc}(x)$ function actually denotes in terms of the $sin(x)$ function. (I ran into this same confusion on my class on Fourier analysis.) The conventions you might see are
$$text{sinc}(x) = frac{sin(x)}{x} ;;; text{or} ;;; text{sinc}(x) = frac{sin(pi x)}{pi x}$$
The latter is known as the "normalized sinc function," per Wikipedia. I don't know much about which is used more when, so I'll leave you with the Wikipedia article in that respect.
Checking your functions if interpreted in the latter way, i.e. for $n=0$
$$frac{2}{3} left( frac{-3}{8pi^2} right) sin bigg(frac{-8pi^2}{3}bigg)-frac{1}{3} left( frac{-3}{4pi^2} right) sin bigg(frac{-4pi^2}{3}bigg)$$
Wolfram Alpha gives a value of $0.0093...$, in agreement with your MATLAB answer. Indeed, as noted by Josh B. in the comments, MATLAB uses the latter convention.
I would assume, then, this is the source of the discrepancy.
edited Dec 28 '18 at 18:30
answered Dec 28 '18 at 18:23
Eevee TrainerEevee Trainer
6,31811137
6,31811137
$begingroup$
Yeah I had a read about it now. Looks like I need to have a discussion with my professor. Couple of weeks ago he defines it in a "standard way" and then suddenly in the past paper it is in the "normalized way".
$endgroup$
– Scavenger23
Dec 28 '18 at 18:26
add a comment |
$begingroup$
Yeah I had a read about it now. Looks like I need to have a discussion with my professor. Couple of weeks ago he defines it in a "standard way" and then suddenly in the past paper it is in the "normalized way".
$endgroup$
– Scavenger23
Dec 28 '18 at 18:26
$begingroup$
Yeah I had a read about it now. Looks like I need to have a discussion with my professor. Couple of weeks ago he defines it in a "standard way" and then suddenly in the past paper it is in the "normalized way".
$endgroup$
– Scavenger23
Dec 28 '18 at 18:26
$begingroup$
Yeah I had a read about it now. Looks like I need to have a discussion with my professor. Couple of weeks ago he defines it in a "standard way" and then suddenly in the past paper it is in the "normalized way".
$endgroup$
– Scavenger23
Dec 28 '18 at 18:26
add a comment |
$begingroup$
Matlab defines
$$ mathrm{sinc}_{text{Matlab}} = begin{cases}
frac{sin(pi t)}{pi t} & t neq 0, \
1 & t = 0
end{cases} text{.} $$
Wolfram (in the Details section) and the rest of the world define
$$ mathrm{sinc}_{text{everyone else}} = begin{cases}
frac{sin t}{t} & t neq 0, \
1 & t = 0
end{cases} text{.} $$
Using Matlab's nonstandard definition of this function, the value of your $n=0$ expression is $0.009321942713359250447 dots$.
$endgroup$
$begingroup$
Yup. Looks like matlab is a rebel.
$endgroup$
– Scavenger23
Dec 28 '18 at 18:37
add a comment |
$begingroup$
Matlab defines
$$ mathrm{sinc}_{text{Matlab}} = begin{cases}
frac{sin(pi t)}{pi t} & t neq 0, \
1 & t = 0
end{cases} text{.} $$
Wolfram (in the Details section) and the rest of the world define
$$ mathrm{sinc}_{text{everyone else}} = begin{cases}
frac{sin t}{t} & t neq 0, \
1 & t = 0
end{cases} text{.} $$
Using Matlab's nonstandard definition of this function, the value of your $n=0$ expression is $0.009321942713359250447 dots$.
$endgroup$
$begingroup$
Yup. Looks like matlab is a rebel.
$endgroup$
– Scavenger23
Dec 28 '18 at 18:37
add a comment |
$begingroup$
Matlab defines
$$ mathrm{sinc}_{text{Matlab}} = begin{cases}
frac{sin(pi t)}{pi t} & t neq 0, \
1 & t = 0
end{cases} text{.} $$
Wolfram (in the Details section) and the rest of the world define
$$ mathrm{sinc}_{text{everyone else}} = begin{cases}
frac{sin t}{t} & t neq 0, \
1 & t = 0
end{cases} text{.} $$
Using Matlab's nonstandard definition of this function, the value of your $n=0$ expression is $0.009321942713359250447 dots$.
$endgroup$
Matlab defines
$$ mathrm{sinc}_{text{Matlab}} = begin{cases}
frac{sin(pi t)}{pi t} & t neq 0, \
1 & t = 0
end{cases} text{.} $$
Wolfram (in the Details section) and the rest of the world define
$$ mathrm{sinc}_{text{everyone else}} = begin{cases}
frac{sin t}{t} & t neq 0, \
1 & t = 0
end{cases} text{.} $$
Using Matlab's nonstandard definition of this function, the value of your $n=0$ expression is $0.009321942713359250447 dots$.
answered Dec 28 '18 at 18:33
Eric TowersEric Towers
32.7k22370
32.7k22370
$begingroup$
Yup. Looks like matlab is a rebel.
$endgroup$
– Scavenger23
Dec 28 '18 at 18:37
add a comment |
$begingroup$
Yup. Looks like matlab is a rebel.
$endgroup$
– Scavenger23
Dec 28 '18 at 18:37
$begingroup$
Yup. Looks like matlab is a rebel.
$endgroup$
– Scavenger23
Dec 28 '18 at 18:37
$begingroup$
Yup. Looks like matlab is a rebel.
$endgroup$
– Scavenger23
Dec 28 '18 at 18:37
add a comment |
Thanks for contributing an answer to Mathematics Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3055154%2fcalculating-value-of-textsincx-wolframalpha-and-matlab-give-two-differen%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
$begingroup$
There is a problem for $n=4$.
$endgroup$
– Michael Rozenberg
Dec 28 '18 at 18:16
1
$begingroup$
Matlab includes a factor of Pi in it's definition of sinc. mathworks.com/help/signal/ref/sinc.html
$endgroup$
– Josh B.
Dec 28 '18 at 18:18
$begingroup$
@JoshB. That is criminal. I need to write an angry email to Matlab.
$endgroup$
– DudeMan
Dec 28 '18 at 18:19
$begingroup$
I see. They use something called normalized sinc. And it would make senses cause Wiki says: In digital signal processing and information theory, the normalized sinc function is commonly defined for x ≠ 0 by bla bla bla. And the course I am doing is signal processing.
$endgroup$
– Scavenger23
Dec 28 '18 at 18:20
$begingroup$
This function is not part of core Matlab but rather the Signal Processing Toolbox. As @EeveeTrainer points out below, this normalized
sincfunction is commonly used in signal processing applications that this toolbox was designed for. You can easily create a non-normalized version, e.g.:sinc2=@(x)sinc(x/pi);.$endgroup$
– horchler
Dec 28 '18 at 20:13