Thanks for posting that. I actually did ALMOST exactly what you did. The only difference was that I DIDN'T post the standalone call to PhotopeakStats at first. When I did that, the program executed, and my time is similar to yours. When I then included the assignment, as you did, including the variable "blah," my copy did not run to completion. When I replaced all the variables in the assignment matrix (LHS) as [a1 a2 a3 a4], it DID run. Then I put back the variables, one at a time, until I discovered that if I include Ch in the LHS matrix, the program fails. In your copy, running on my machine, it does not.
I suspect that there is some confusion with labeling. In M14, if I select a constant, the tool bar indicates that; if I select a variable, the too bar indicates that. I don't see this in M'.
I deleted and re-entered the variable Ch, but no change.
So I'll send off both copies to PTC and let them
see what they find...
Rich
http://www.downeastengineering.com/