I got an 'Could not find initial value for global variable' error message when I build a MATLAB function with MATLAB coder
Ältere Kommentare anzeigen
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?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Algorithm Design Basics finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!