Info

この質問は閉じられています。 編集または回答するには再度開いてください。

error setting parallel option for plsregress

1 回表示 (過去 30 日間)
Benjamin
Benjamin 2011 年 11 月 4 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I am trying to run the function plsregress to run in parallel.
The MATLAB documentation states that "paroptions = statset('UseParallel','always')" should be set.
Then paroptions called into plsregress:
[~,~,~,~,~,~,PLSmsep] = plsregress(X,y,30 ,'CV',10,'mcreps',1000,paroptions);
However, I get a "wrong number of arguments" error from plsregress at line 151. Any suggestions?

回答 (1 件)

Jill Reese
Jill Reese 2011 年 11 月 4 日
To use a nontrivial options structure you need to use the parameter value pair 'Options', nameOfStruct. In your case, the call to PLSREGRESS should look like this:
[~,~,~,~,~,~,PLSmsep] = plsregress(X,y,30 ,'CV',10,'MCReps',1000,'Options',paroptions);

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by