Cory,
one mistake I have made in the past is that not only number of elements,
but also dimensions matter. So maybe one working contrast is a 9x1
vector, while the not-working-one is a 1x9 vector. You could test that
by transposing the not-working-one by appending an apostrophe (as in [0
0 0 0 0 0 0 0 1]') or so.
Cheers
Marko
Cory Coleman schrieb:
> I'm running a large set of contrasts vectors through the contrast
> manager. All my contrast vectors are the exact same size, all made up
> of 0 and 1 like you'd expect, etc.
> Almost all the vectors work fine , but some vectors throws an "Invalid
> Contrast" error in "spm_run_con" at line 251.
> When I replace the "invalid" vector with a different contrast vector of
> equal length, Contrast Manager runssuccessfully.
>
> My (obviously flawed) understanding of ContrastManager held that a
> contrast was "valid" iff it had the right length and each element 0, 1,
> or -1. Why else might my contrast be invalid?
>
> I'm running SPM12 on Matlab R2014b . During model specification, my
> basis function is Finite Impulse Response with Order=9. (Previously
> we'd been using Canonical HRF and didn't run into this problem).
>
>
> ------------------------------------------------------------------------
> Running job #1
> ------------------------------------------------------------------------
> Running 'Contrast Manager'
>
> SPM12: spm_contrasts.m 15:54:12 - 12/07/2018
> ========================================================================
> Contrasts folder : ./Subject001/FIR_analysis_Order9
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
> 0 0 0 0 0 0 0 0 0 0 <- !invalid contrast
> Failed 'Contrast Manager'
> Error using spm_run_con (line 251)
> Error in contrast specification
> In file "/nfs/pkg64/contrib/spm12/config/spm_run_con.m" (v7093),
> function "spm_run_con" at line 251.
>
>
--
____________________________________________________
Prof. Dr. med. Marko Wilke
Facharzt für Kinder- und Jugendmedizin
Leiter, Experimentelle Pädiatrische Neurobildgebung
Oberarzt der Abteilung Neuropädiatrie
Universitäts-Kinderklinik
Marko Wilke, MD, PhD
Pediatrician
Head, Experimental Pediatric Neuroimaging
Consultant in Pediatric Neurology
University Children's Hospital
Hoppe-Seyler-Str. 1
D - 72076 Tübingen, Germany
Tel. +49 7071 29-83416
Fax +49 7071 29-5473
[log in to unmask]
http://www.medizin.uni-tuebingen.de/kinder/epn/
____________________________________________________
|