Compiling Statistics Toolbox function

2 views (last 30 days)
Beatrice
Beatrice on 10 Jun 2015
Commented: Greg on 21 Apr 2017
Hello,
I am writing a tool which uses some of the Statistics Toolbox function, but there is an error in the compiled version when these functions are to be run. Does this mean they can't be compiled? If so, is there a way around that? I would be very grateful for any answer or advice you may have. I am using Matlab 2013b and the associated compiler and compiler runtime. Thank you

Answers (1)

Walter Roberson
Walter Roberson on 10 Jun 2015
"All command line functionality" is supported.
That is the case for R2015a; I do not have access to the R2013b version of the documentation to check it.
  2 Comments
Beatrice
Beatrice on 11 Jun 2015
Thank you for this answer. Does this mean that functions such as RegressionTree.fit should be compiled with the rest of the Matlab files? The standalone version (but not the source version) returns the following error when the script is run:
Undefined function 'classreg.learning.modelparams.TreeParams.make' for input arguments of type 'cell'.
Error in classreg.learning.FitTemplate/fillIfNeeded (line 508)
Error in classreg.learning.FitTemplate.make (line 122)
Error in RegressionTree.template (line 284)
Error in RegressionTree.fit (line 213)
I imagine this is due to the file being absent after compilation, since this script works perfectly before compilation. Do you have any idea what could be causing this?
Greg
Greg on 21 Apr 2017
I'm experiencing the same error. Any ideas?

Sign in to comment.

Categories

Find more on MATLAB Compiler 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!