Why is my field non-existent?
1 view (last 30 days)
I have a piece of code that keeps returning a 'Reference to non-existant field...' error for a variable that is definitely defined and I am not sure why. Hopefully someone here can help.
The offending line of code reads:
And the error that gets returned reads: Reference to non-existent field 'dp'.
Ordinarily I would take this to mean that I hadn't defined this value or that there was a typo in the name. However the variable is definitely defined and no typos exist, as far as I can tell. This is easily verified by having the code print this value to the screen immediately before it is used:
This gives the following output on the screen:
ans = 6.095382113821141
Reference to non-existent field 'dp'.
Error in MH47MassFlow (line 108)