Print

Print


Hi - I believe matlab2010 and below set up the random number generator at startup with this 

	stream = RandStream('mt19937ar','Seed',5489);
	RandStream.setGlobalStream(stream);

But I think rng(‘default’) is equivalent to replacing 5489 with 0 (but not sure).

In any case, if you replace rng(‘default’) with the above two lines in the file palm_takeargs.m that should fix the problem.

Cheers
Saad




> On 1 Sep 2016, at 16:51, Kim TRAN DONG <[log in to unmask]> wrote:
> 
> Hi all,
> 
> I want to perform PALM with non-imaging data, but I got this error while running the commande "palm -i data.csv -d design.csv -t contrast_CP.csv -n 1000":
> 
> ??? Undefined function or method 'rng' for input arguments of type 'char'.
> 
> Error in ==> palm_takeargs at 1478
>        rng('default');
> 
> Error in ==> palm_core at 33
> [opts,plm] = palm_takeargs(varargin{:});
> 
> Error in ==> palm at 81
> palm_core(varargin{:});
> 
> I use matlab R2010a. Could anyone help me to solve this problem? 
> 
> Thank you very much,
> 
> Best regard,
> 
> Kim
> <contrast.csv><design.csv><data.csv>