the variable is present in dd and .mat file, but showing error Cannot resolve variable.
3 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1415129/image.png)
4 个评论
Walter Roberson
2023-6-20
Variables like that one must be defined in the base workspace before you attempt to build (or compile) the Simulink model. If the variable is being defined by Targetlink then you would have to run the Targetlink initialization routine to get the variables created before you could work on the model.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Prepare Model Inputs and Outputs 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!