I'm trying to write a MATLAB script that can perform pre-processing computations on a data dictionary prior to Simulink running. I've been trying to write a script that is called from the 'evalin' interface with the Dictionary design data section as the first input and my script as the second:
Assume the dictionary already has parameters x and y with some arbitry values
if my_script.m has:
There's no problem. If I modify my_script.m to:
There is an error when calling evalin:
"Could not evaluate 'my_script' in data dictionary
After further testing, it doesn't seem like I can use an existing parameter anywhere on the rhs of an equation. Is this correct?