the variable is present in dd and .mat file, but showing error Cannot resolve variable.
3 views (last 30 days)
Show older comments
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1415129/image.png)
4 Comments
Walter Roberson
on 20 Jun 2023
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.
Answers (0)
See Also
Categories
Find more on Prepare Model Inputs and Outputs 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!