Question eig2nifti

Viewing 3 reply threads
  • Author
    Posts
    • #342
      mihikag
      Participant

      I’m completely new to BrainSuite and using the Matlab compiler. I’m trying to use the eig2nifti function as described (http://neuroimage.usc.edu/neuro/Resources/eig2nifti). Can I use this function and the associated source code just with the Matlab compiler that was installed? If so, then how do I do this using a Command Window terminal?

    • #343
      mihikag
      Participant

      As an update, I’m trying to run the function in Matlab. When I’m running the sample code, I get the following message:
      Reading eig file…Undefined function or variable ‘load_nii_hdr’.

      Error in load_untouch_eig_gz

      Error in load_untouch_eig_gz

      Error in eig2nifti

      It seems tgat the function is looking for the function load_nii_hdr but not locating it. This function was not in the src folder that was downloaded.

    • #344
      sychoi
      Participant

      on line 14 of sample_eig2nifti.m:

      addpath(‘src’); % replace by correct path of ‘src’ directory

      did you replace this path?

    • #346
      mihikag
      Participant

      The eig2nifti file had not unzipped correctly. I downloaded the code and functions again and everything is working correctly. Thanks!

Viewing 3 reply threads
  • You must be logged in to reply to this topic.