MRSignalsSeqs icon indicating copy to clipboard operation
MRSignalsSeqs copied to clipboard

msinc function in exampleB1_17 not included

Open snapfinger opened this issue 6 years ago • 1 comments

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

snapfinger avatar Feb 19 '19 18:02 snapfinger

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);

Zhitao-Li avatar Apr 14 '20 05:04 Zhitao-Li