I got an 'Could not find initial value for global variable' error message when I build a MATLAB function with MATLAB coder
显示 更早的评论
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?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Algorithm Design Basics 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!