From: Nick Hale on
When attempting to run our MATLAB-based software on a Mac we get the following message:

MATLAB:mir_error_function_used_where_variable_is_required

Could anyone shed some light on what it means?

Many thanks!

Nick
From: Jan Simon on
Dear Nick,

> When attempting to run our MATLAB-based software on a Mac we get the following message:
> MATLAB:mir_error_function_used_where_variable_is_required
> Could anyone shed some light on what it means?

It would be very helpful, if you post the corresponding line of code also.

Jan
From: Nick Hale on
"Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <i26imc$95v$1(a)fred.mathworks.com>...
> Dear Nick,
>
> > When attempting to run our MATLAB-based software on a Mac we get the following message:
> > MATLAB:mir_error_function_used_where_variable_is_required
> > Could anyone shed some light on what it means?
>
> It would be very helpful, if you post the corresponding line of code also.
>
> Jan

Jan, I'm not sure it will be, but here you go:

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.

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

Nick
From: Nick Hale on
Sorry, I should have pointed out that plus and minus here are overloads for our own 'fun' class.
From: Bruno Luong on
"Nick Hale" <hale(a)maths.ox.ac.uk> wrote in message <i26mv8$8o6$1(a)fred.mathworks.com>...
> Sorry, I should have pointed out that plus and minus here are overloads for our own 'fun' class.

Type

>> dbstop if error

then rerun your code.

Bruno