/
Bruker DTI - create dti.txt in MATLAB

Bruker DTI - create dti.txt in MATLAB

Start with the method file (see Bruker Files )

  1. Copy the directions

  2. Paste into Notepad and save as text file

    • Include extension, so “D.txt”

  3. In MATLAB, “Import Data” and select file

    • Check “Space” under Column delimiters

    • Change “Output Type” to “Numeric Matrix”

    • Import (by default all columns should be selected)

    • Variable will take name of file (e.g., “D”)

  4. In MATLAB Command Window, rearrange the imported variable into rows of x/y/z

% Transpose D = D'; % Get rid of NaN's at end D(isnan(D)) = []; % Reshape into x/y/z (columns) D = reshape(D,3,[]); % Flip so xyz are in rows D = D';

 

Copy directions

Paste into Notepad and save as text file *e.g., “D.txt”)

Import

 

 

Related content

Bruker Files
Bruker Files
More like this
Bruker DICOM conversion
Bruker DICOM conversion
More like this
Bruker to nifti conversion
Bruker to nifti conversion
More like this
T1R
More like this
Preclinical approach
Preclinical approach
More like this
DTI Analysis
DTI Analysis
More like this