How to export ensemble decision tree model into XML or C/++

How to export trained models into XML or C/++ course code?
I trained model using fitcensemble function and AdaBoostM1 method with controlling MaxNumSplits, MinLeafSize and NumLearningCycles parameters. Now, I am looking for a way to export tree's Weight parameters and actual decision trees into XML or C/++ source code. Basically, I need to export code with "if and elseif" statements per tree and theid weighting parameters.
Any recommendations how to do this?
Thank you for reading!

Community Treasure Hunt

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

Start Hunting!