Dear Guillaume,
I was unable to troubleshoot either of these issues as per your advise:
(1) matlab is installed in /opt/matlab and invoked using
/usr/local/bin/matlab. I use addpath (genpath(/path/to/SPM80) in a startup
file to add spm to the matlab search path. I believe these are all standard
settings, and I am not noticing anything out of the ordinary in my search
path. Is there any particular information I can provide you? That might help
us troubleshoot this, I would've been happier to hear that my script was the
problem!
(2) if I understand the code around line 659 in spm.m sets variable w
according to screen size (containing the cursor). I don't see any easy way
for me to set w=1 or 2! and I can assure you that on my dual screen windows
and/or linux machines, spm does not create windows in the screen containing
the pointer.
Any idea/suggestion is appreciated.
-kambiz
On Fri, 2 Oct 2009 15:26:44 +0100, Guillaume Flandin
<[log in to unmask]> wrote:
>Dear Kambiz,
>
>(1) weird. As Vladimir suggested, check your Matlab and SPM
>installation. Also have a look at your Matlab path and remove any
>directory that does not really need to be there.
>
>(2) SPM attempted behaviour is to open new figures in the screen your
>mouse is currently in. If you want to force SPM to always use the same
>screen, you can edit spm.m around line 659 so that the variable w
>contains the screen number (ie 1 or 2 according to which monitor your
>want to use and which one is primary or secondary).
>
>All the best,
>Guillaume.
>
>
>Kambiz Tavabi wrote:
>> Dear SPMers,
>> I have two light hearted (that is naive) issues I'd like to get your
input on:
>> (1) while attempting to run the attached script I get the following error
>>>> Error in ==> spm at 286
>>>> Modalities = {'PET','FMRI','EEG'};
>>>> ??? Output argument "varargout" (and maybe others) not assigned during
call to
>>>> "/mnt/meglab_san/tavabik/matlab/spm8/spm.m>spm".
>> I cannot figure this out. I can successfully execute all the commands in my
>> little script at the terminal, but calling/running the script produces the
>> error. I have essentially put the script together using the history
>> generated by spm, and have tried it with and without the initial command
>> "spm('defaults','eeg') to no avail.
>> (2) A completely separate matter; is there any way to specify the SPM
>> graphics window to open in the same screen matlab is running in on a dual
>> screen linux machine running Cent OS5?
>>
>> Thank you
>> Kambiz
>
>
>--
>Guillaume Flandin, PhD
>Wellcome Trust Centre for Neuroimaging
>University College London
>12 Queen Square
>London WC1N 3BG
|