Questions tagged [matlab-spm]

SPM (Statistical Parametric Mapping) is a matlab library for preprocessing and analysis of functional Magnetic Resonance Imaging (fMRI) data. Use with the [matlab] tag

SPM is maintained by the Wellcome Trust Centre for Neuroimaging.

41 questions
1
vote
1 answer

Compiled MATLAB error: Undefined function 'ft_datatype_sens' for input arguments of type 'struct'

I have a MATLAB program written by one of my users which makes use of the SPM8 toolbox. If run directly, it works fine. However, when compiled and then run, the following error occurs: Undefined function 'ft_datatype_sens' for input arguments of…
loris
  • 450
  • 8
  • 20
1
vote
1 answer

ImportError: No module named 'spm1d

I have Python 3.5.2 (Anaconda 4.2.0 (x86_64)) on my Mac laptop and I am facing this problem: import spm1d Traceback (most recent call last): ImportError: No module named 'spm1d' I searched about the problem and I did not find any solution. Thank…
Basemah
  • 13
  • 3
1
vote
0 answers

Call external function in SPM matlabbatch

I tried to use a private MATLAB function (private means that I wrote it myself) via the matlabbatch object in SPM12 that I compiled : run_spm12.sh $MCR_ENV run batch.m with the batch.m file containing the following lines:…
1
vote
1 answer

SPM Dicom Convert in python (Ipython/ Nipype)

I am new to python or more specifically ipython. I have been running through the steps to run what should be a very simple Dicom Conversion in a statistical package called SPM for an MRI image file as described by NiPype. I can't get it to run and…
0
votes
0 answers

Transform library from CocoaPod into an internal library in Xcode

I use a library called SVProgressHUD from "https://github.com/SVProgressHUD/SVProgressHUD". It works properly on my project, but this library is a CocoaPod library. I removed and migrate all other libraries from CocoaPod to SPM(or transform it into…
fabiobh
  • 705
  • 2
  • 13
  • 33
0
votes
1 answer

SPM dependency between multiple packages

I'm trying to create SPM hierarchy where some packages have dependecies on other, like this: Package A is Core package where I also added dependencies to some external libraries and where I keep most of my native code: let package = Package( …
kivu
  • 33
  • 3
0
votes
0 answers

@Binding var in a spm package

I have the following View in a SPM pack that I intend to use in a few apps I am creating. The Idea is to have a generic Picker View that I can send list of objects and expect the user to pick one to return to its calling view. It does work well if I…
0
votes
0 answers

IOS apps with SPM for CI/CD

How to make ios app which uses SPM to build and create Xcframework automatically through scripts on every checkin to github. This is the existing project with Pods and we migrated to SPM. So we have added package file at Project's root folder. Rest…
ShriVari
  • 3
  • 3
0
votes
0 answers

SPM_select command results in indices not compatible on the left and right sides for SPM batch script no matter what I do

I am trying to load in .nii files for some smoothed/preprocessed fMRI images to run first level analyses using a batch script in SPM. But when I use spm_select to do so the stats.scans() line sends me an error. This is despite the fact that the…
0
votes
0 answers

How to extract value per voxel in Matlab?

I am doing SPM on brain images and I want to extract the value of T-stat for each voxel (in mm coordinate rather than voxel coordinate). Is there any function do that in Matlab? The image is the SPM result rather than raw image. Thanks,
jbun0007
  • 3
  • 2
0
votes
0 answers

OSError: This docstring was not generated by Nipype

Hey i am runing the following piece of code: import nipype.interfaces.spm as spm realign = spm.Realign() And getting the following error: raise IOError("This docstring was not generated by Nipype!\n") from e OSError: This docstring was not…
greenity
  • 419
  • 1
  • 5
  • 13
0
votes
0 answers

How to properly edit the Auto-Generated SPM12 job.mat file to change the target scan file after running

I'm trying to edit the auto-generated .mat files so that I can normalize 5 images sequentially instead of all in 1 go. There are 2 files. One contains the spm_jobman command to start the normalization process. Ive edited it to contain the list of…
0
votes
0 answers

Error when fetching Swift Package Manager Package hosted on private HTTP2 only git repo server

I have multiple SPM packages hosted on a private repo that only supports HTTP/2. The packages will clone to my local machine fine, but when trying to add them as a dependency to a project, the package will not resolve. Either it will spin forever,…
Baker
  • 1
0
votes
0 answers

Creating a whole brain mask of added 2 nifti images

In my analysis to create a whole brain mask for all my subs summed togeather and extract fractional anisotropy out of it, I started with segmenting structural image of each subject into white and gray matter, i added the 2 nifti images (gray matter…
0
votes
0 answers

SPM batch error 'Error using subsasgn_check (line 49). Error in subsasgn (line 80)...'

the batch script is showing me this error(photo), but i'm sure that the file is in the rigth fortmat a colum srting cell array. this are code lines: matlabbatch{1}.cfg_basicio.file_dir.file_ops.cfg_named_file.files =…
r ll
  • 1
  • 1