How to run bootci in parallel mode
Show older comments
I would like to run bootci in parallel mode. My version is R2021a Update 1.
For simple testing I've tried to run bootci(100,@mean,rand([1E4,1]),'Options',statset('UseParallel',true)) but then an error occurs. It doesn't matter which function I use (mean, var, std)
Error using bootci (line 149)
Error evaluating BOOTFUN function 'mean'.
Caused by:
Error using mean>parseInputs (line 240)
Invalid option. Option must be one of 'double', 'native', 'default' or one of 'omitnan', 'includenan'.
Parallel Toolbox is set up correctly because bootstrp(100,@mean,rand([1E5,1]),'Options',statset('UseParallel',true)) runs without any issues.
When I try to run bootci in single-core mode like bootci(100,@mean,rand([1E4,1])) also no error occurs.
Where could the error be located?
Thanks for your help in advance!
Accepted Answer
More Answers (0)
Categories
Find more on Resampling Techniques in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!