From spm_input.m:
- Comand line -
If YPos is 0 or global CMDLINE is true, then the command line is used.
Negative YPos overrides CMDLINE, ensuring the GUI is used, at
YPos=abs(YPos). *_Similarly relative YPos beginning with '!'
(E.g.YPos='!+1') ensures the GUI is used._*
Also:
YPos - (numeric) vertical position {1 - 12}
% - overriden by global CMDLINE
% - 0 for command line
% - negative to force GUI
% - (string) relative vertical position E.g. '+1'
% - relative to last position used
% - overriden by global CMDLINE
% - YPos(1)=='!' forces GUI E.g. '!+1'
% - '_' is a shortcut for the lowest GUI position
% - Defaults (missing or empty) to '+1'
Yune Lee wrote:
>
> Dear SPM and Matlab experts,
>
> Can anyone explain me about waht the second argument '!+1' does in
> the command below?
> I'm also wondering what the exclamation '!' is for before the '+1' .
>
> Ic = spm_input('Which contrast?','!+1','m',{SPM.xCon.name
> <http://SPM.xCon.name>});
>
> Many thanks,
> YSL
|