BDP error (badsubscript)

  • This topic has 3 replies, 4 voices, and was last updated 11 months ago by Anonymous.
Viewing 2 reply threads
  • Author
    Posts
    • #3160
      Taylorariko
      Participant

        Hello,

        I am having a similar problem. Any help?

        >>/Applications/BrainSuite21a/bdp/bdp.sh T1.bfc.nii.gz –nii DW.nii –bval bval.bval –bvec bvec.bvec

        BDP Version: 21a (build #0081), released 2021-05-05

        ================================================================================
        Setting up dataset and inputs
        ================================================================================
        Reading input flags…
        Did not detect –FRT/–FRACT/–tensor/–3dshore/–gqi/–erfo. Using default
        setting of estimating tensors.

        Checking input files…
        Array indices must be positive integers or logical values.

        Error in check_nifti_file (line 34)

        Error in bdp_setup (line 894)

        Error in BrainSuite_Diffusion_pipeline (line 13)

        MATLAB:badsubscript

        >>

        Thanks!
        Taylor

      • #3528
        Whiiz
        Participant

          Hey,

          having a similar problem, any solutions yet?

          Error in find_bounding_box (line 16)

          Error in EPI_correct_files_registration_INVERSION>trim_msk_PED (line 513)

          Error in EPI_correct_files_registration_INVERSION (line 271)

          Error in coregister_diffusion_mprage_pipeline (line 219)

          Error in BrainSuite_Diffusion_pipeline (line 26)

          MATLAB:badsubscript

        • #5382
          Anonymous

            The BDP error (BadSubscript) typically occurs in programming languages when an invalid subscript or index is used to access an array, list, or similar data structure. This error happens when an attempt is made to reference an element at an index that doesn’t exist or is out of range. Common causes include using negative indices, exceeding the array’s bounds, or passing non-integer values as subscripts. To resolve this error, verify the array’s size, check the index calculations, and ensure proper bounds checking before accessing array elements.

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