From: Jan Simon on
Dear Nick,

> identifier: 'MATLAB:mir_error_function_used_where_variable_is_required'
> message: ''
> @fun/plus.m line 2
>
> The plus function is simply:
> function g1 = plus(g1,g2)
> g1 = minus(g1,-g2);
>
> and calls to minus seem to work fine.

"Seem to work fine"? This does not sound like it passed a regular test...

> This was sent to me by a user, and I can't reproduce the error myself.

Then there is a difference between your system and the user's system. Because the line2 is realtively lean, there might be problems with UMINUS, G1, G2 and MINUS. You could inspect these symbols with the WHICH command.

However, it will be hard for the newsgroup to solve a problem, which cannot be reproduced by the author.

Good luck, Jan
Good luck, Jan
From: Nick Hale on
> Then there is a difference between your system and the user's system. Because the line2 is relatively lean, there might be problems with UMINUS, G1, G2 and MINUS. You could inspect these symbols with the WHICH command.
>
> However, it will be hard for the newsgroup to solve a problem, which cannot be reproduced by the author.
>
> Good luck, Jan

Jan,

Yes, you're right. I was just hoping someone might be able to tell me what the error identifier might mean. Thanks for you help.

Nick