hi mark,
from release 12 onwards, MATLAB makes it compulsory to delimit
all array elements by a seperator other than space. One has to change all
such occurences in spm99 to a form syntactically compatible with R12.
But if there is a simpler method to do the same, i would be happy
to know.
siddy.
PS: matlab also complains on "isieee" conditional. it would be better to
change that too. further it is useful to know of the following commands:
check_syntactic_warnings
martix_element_separators
---------------------------------------------------------------------
On Wed, 28 Feb 2001, Mark Daglish wrote:
> Hi,
>
> I think there is a very small & trivial bug in spm.m line 1286.
> I am running Spm99 with all the patches (I think) on a PC
> with Matlab 6 and Linux (SuSE 7.0).
>
> When I run spm from matlab with the command spm I get the
> error message:
>
> Warning: File: /usr/local/spm99/spm.m Line: 1286 Column: 30
> Future versions of MATLAB will require that whitespace, a comma,
> or a semicolon separate elements of a matrix. Please type
> "help matrix_element_separators" at a MATLAB prompt for more information
>
> This "error message" disappears if line 1286 is changed from:
>
> if nargin>=2, str = [str,': 'varargin{2}]; end
>
> to
>
> if nargin>=2, str = [str,': ',varargin{2}]; end
>
> I doubt this is important (unless there is anyone out there trying to
> run spm with MATLAB 7 :-) but thought I would let folk know.
>
> Regards,
>
> Mark
> ========================
> Dr. Mark Daglish
> Clinical Research Fellow, Psychopharmacology Unit, University of Bristol
> Visiting Clinical Fellow, MRC Cyclotron Unit, Hammersmith Hospital, London
>
> Tel: +44 (0) 117 - 925 3066
> Fax: +44 (0) 117 - 927 7057
> email: [log in to unmask]
> ========================
>
|