I got an 'Could not find initial value for global variable' error message when I build a MATLAB function with MATLAB coder
Show older comments
Hello,
I'm trying to get a auto-generated code for a MATLAB function. Many things happened and I coded again to fit it to MATLAB coder. But I'm not able to find the solution to the error message.
'Could not find initial value for global variable xxx'
I explicitly declared global variables in my MATLAB function code. So I think I don't need to assign values to them.
What is the cause of this erroe message? Do you have any solution to avoid it?
Accepted Answer
More Answers (0)
Categories
Find more on Algorithm Design Basics in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!