MATLAB coder gives multiple errors for hierarchical code
Show older comments
I am trying to convert a regression model I generated from regression learner to C for an iOS implementation. The testbench of the function is predictX_test.m and the function to be translated is predictX010.m. predictX010.m relies on mypadcat and mystrsplit to do data pre-processing operations. The code works perfectly in MATLAB but the MATLAB coder doesn't like dynamic memory changes. The errors are shown in the image below, and they occur even in the presence of coder.varsize() calls. What can I do to make them go away?

Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Coder 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!