How to change a global variable name in simulink (containing Data Store Memory)
2 views (last 30 days)
When I type
in MATLAB command box, a simulink model opens and fully works. (As you can try)
I changed matlab function inside the model to
function y = fcn
B = B+1;
y = B;
and renamed data store memory to 'B' (even I clicked on 'refresh')
But after that simulink gives an error as below:
"Data Store Memory block with name 'A' was not found for chart 'MATLAB Function'."
Can anyone help me to find out what's wrong? I'm testing that code to use it in my main project.