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
0
votes
2 answers

How to overlay 2 nifti files?

Im a beginner in the nifti world, and have to overlay 2 niftis (one segmented white matter and one segmented gray matter images) together. I tried with FSLeyes but I cant save them to a nifti. If somebody has dealed with same issue, and can help…
0
votes
1 answer

Using SPM (SQL Plan Management) - Oracle DB

Can SPM cause a temp regression for the SQL in case below -- Scenario : 1.Weekend Changes (suppose) like huge data load and the weekend gather stats job causes stats to change and thus this change necessitates the new execution plan to be used to…
0
votes
2 answers

What seems to be the problem with my short SPM12 script - it's supposed to sum two neural maps (.nii)?

I'm not afraid this question might be too obscure, but here it goes! I have limited experience with scripting, and I wrote this script to sum two neural maps (that contain "c1" or "c2" in their names) with…
0
votes
1 answer

Using nibabel to save nifti in "SPM" style

I have used python to analyse some fMRI data and would now like to save my results as niftis that I can then use in an SPM analysis. My data scores is an array of float64 of shape (97, 115, 97). I have used the following code to save it: import…
Max
  • 405
  • 2
  • 11
0
votes
0 answers

for how How to compute whether representational similarity matrix values are significant

I am new to RSA analysis in fMRI images. I used SPM 12 for preprocessing and first level analysis of my fMRI images and used RSA-toolbox to compute RDMs (representational dissimilarity matrix) for my conditions in an specific region of the brain.…
Alireza
  • 135
  • 1
  • 9
0
votes
1 answer

Nested Anova in python with Spm1d. Can't print f statistics and p values

I'm looking for a simple solution to perform multi-factor ANOVA analysis in python. A 2-factor nested ANOVA is what I'm after, and the SPM1D python module is one way to do that, however I am having an…
kabammi
  • 326
  • 3
  • 14
0
votes
1 answer

MATLAB selecting items considering the end of their name

I have to extract the onset times for a fMRI experiment. I have a nested output called "ResOut", which contains different matrices. One of these is called "cond", and I need the 4th element of it [1,2,3,4]. But I need to know its onset time just…
0
votes
1 answer

Is it possible to apply an arbitrary transformation matrix to an image in SPM?

I have a somewhat specific task I'd like to do in SPM. Basically, I have some input NII file scan.nii and I would like to apply an arbitrary affine transformation to it, defined by x y z p r yw. x,y,z,p,r,yw represent the translations and rotations…
Karl
  • 111
  • 10
0
votes
1 answer

SPM12 debugging on Matlab

I have a problem using SPM on Matlab. I have an m-file that I need to debug and I have not written. This code is old and probably the error is hopefully given by the difference in syntax of the newer versions. The error pops out using this…
-1
votes
1 answer

Error compiling SPM12 for MATLAB on a Mac M1 with Big Sur

I have some problems, trying to install SPM12 on my Mac M1 with Big Sur. My config is: Mac M1 Big Sur (11.3.1) - 512/16GB MATLAB_R2020a SPM12 I followed the instruction here On Matlab: addpath ./Downloads/spm12/; savepath On Terminal: export…
-1
votes
1 answer

Cannot import dicom images in SPM

I have some dicom images which SPM cannot import them, for each dcm file I see the below error: S11956_I11604.dcm" does not seem to have positional information. It seems my dcm files do not have DimensionIndexSequence field. I tried to convert them…
ahp
  • 1
  • 2
1 2
3