Dear Pierre,
You should specify your contrasts in the following way:
[1 -1 0 0 0; 0 0 1 -1 0; 1 1 1 1 0; 1 1 0 0 0; 0 0 1 1 0].
Hope it helps,
Fabio Sambataro, MD
Post Doctoral Visiting Fellow
Genes, Cognition and Psychosis Program
National Institute of Mental Health IRP
National Institutes of Health
Building 10, Room 3C-108
Bethesda, MD 20892
Tel: (301)-435-4598
Fax: (301)-451-4269
Fabio
-----Original Message-----
From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]] On Behalf
Of gagnepain
Sent: Thursday, February 10, 2005 6:07 AM
To: [log in to unmask]
Subject: [SPM] GA optimize design
Dear Doctor Wager,
I’m new with matlab and I have some difficulties with using GA utility that
you’ve been created.
When I specify the ga_example_script_factorial.m (that I’ve joint with this
mail), matlab told me the following error message but I can not understand why
:
>> ga_example_script_factorial
ga_example_script_factorial
ans =
0 0 1 -1 0
ans =
1 1 1 1 0
ans =
1 1 0 0 0
ans =
0 0 1 1 0
Starting Model 1
OptimizeGA
===============================
Saturation threshold = 2
Setting up variables
??? No appropriate methods for function contrasts.
Error in ==> /usr/yamoyen/share/matlab/OptimizeDesign11/optimizeGA.m
On line 56 ==> if isempty(contrasts)
Error in ==> /emi/gagnepain/od/ga_example_script_factorial.m
On line 225 ==> M = optimizeGA(GA);
Could you tell me what’s going wrong in my script?
Thanks a lot for your helpful comments
Best wishes
Pierre Gagnepain
GIP Cyceron
Inserm E0218-Université de Caen
Boulevard Henri Becquerel
BP 5229 14074 CAEN
France
Tel +33(0)2.31.47.02.60
----------------------------------------------------------------
Università di Catania - C.E.A.
Servizio di Posta Elettronica
http://www.cea.unict.it
|