1. In addition to being a function handle, the name of the class folder starts with the @ symbol. D: \ 2021.04.13 – new \ 2021-4 XLN miau \ \ 4 XLN \ mati \ + mati \ @ Diff
  2. . 3 consecutive “.” Refers to line continuation character. If a line needs to be commented out, just add the line continuation character before the specified statement.
% courtesy of J.Z.X and J.W. Nacq1 = 5 ; % total number of acquisition points pulse_tcos1 = mati.DiffusionPulseSequence(Nacq1,... 'TE', 106,... % echo time [ms] 'delta', 40.9... % gradient duration [ms] 'Delta', 54.1794... % separation of two gradients [ms] 'b', [0,0.18,0.36,0.54,0.72],... % b value [ms/um^2] 'n', [1,1,1,1,1],... % number of oscillating cycles ... 'shape', "tcos",... % gradient waveform shape 'gdir', [0 0 0],... % gradient directions. It should be a Nx3 matrix 'trise', 0.9); % gradient rise time [ms]
  1. The folder name of the + MATLAB package begins with the + symbol. D: \ 2021.04.13 – new \ 2021-4 XLN miau \ \ 4 XLN \ mati \ + mati \ + Physics
  2. ~ can indicate that an argument is ignored as a placeholder for the output argument in a function call.
function ogsePulse(someInput,~,~) % ignore certain input
[~,b] =find(sta_data>29); % ignore row index only return column index