Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

msinc function in exampleB1_17 not included #2

Open
snapfinger opened this issue Feb 19, 2019 · 1 comment
Open

msinc function in exampleB1_17 not included #2

snapfinger opened this issue Feb 19, 2019 · 1 comment

Comments

@snapfinger
Copy link

Hi Professor, the msinc function used to put RF pulse in central part in exampleB1_17.m seems to be not included

@Zhitao-Li
Copy link

You can find it from a tool box https://leoliuf.github.io/MRiLab/
The actual content is the following:

%
%  Returns a hamming windowed sinc of length n, with m sinc-cycles,
%  which means a time-bandwidth of 4*m
%

%  written by John Pauly, 1992
%  (c) Board of Trustees, Leland Stanford Junior University

function ms = msinc(n,m)

x = [-n/2:(n-1)/2]/(n/2);
snc = sin(m*2*pi*x+0.00001)./(m*2*pi*x+0.00001);
ms = snc.*(0.54+0.46*cos(pi*x));
ms = ms*4*m/(n);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants