Could you post the output of the following commands?

which ver
which isempty
v = ver('Matlab’)
path

My suspicion is that you may have a user-defined function called ver() in your 
Matlab path for the 2014b version that is masking Matlab’s built-in ver() 
function.

— Ray


> On Dec 15, 2015, at 12:14 PM, Ayman Esmat <[email protected]> wrote:
> 
> Good Evening,
> 
> I have a bit of strange problem that I don't know how to solve it.
> 
> My Computer is working on Windows 7 SP1 64-Bit.
> I have two versions of Matlab installed on my computer ( Matlab R2011A & 
> Matlab R2014b)
> 
> When I use the older version of Matlab (2011), matpower is working perfectly 
> (running PF and OPF). 
> 
> However, when I use the earlier version of Matlab (2014), I can only run a PF 
> (power flow). When I try to run an OPF (Optimal Power Flow) I receive this 
> message:
> Error using isempty
> Too many input arguments.
> 
> Error in have_fcn (line 332)
>                 if ~isempty(v) && isfield(v, 'Version') && ~isempty(v.Version)
> 
> Error in have_fcn (line 400)
>                 if have_fcn('matlab')
> 
> Error in opf_execute (line 61)
>     if have_fcn('pdipmopf')
> 
> Error in opf (line 206)
> [results, success, raw] = opf_execute(om, mpopt);
> 
> Error in runopf (line 77)
> [r, success] = opf(casedata, mpopt);
> 
> 
> So I tried to write "test_matpower" to see if there is a problem and I get 
> this message:
> 
> Error using isempty
> Too many input arguments.
> 
> Error in have_fcn (line 332)
>                 if ~isempty(v) && isfield(v, 'Version') && ~isempty(v.Version)
> 
> Error in have_fcn (line 400)
>                 if have_fcn('matlab')
> 
> Error in test_matpower (line 52)
> if have_fcn('pdipmopf')
> 
> 
> The output of mpver is :
> 
> ATPOWER               Version 5.1        20-Mar-2015
> MATLAB                 Version MATPOWER 
> 8.4                    Version 5.1      Error using isempty
> Too many input arguments.
> 
> Error in mpver (line 56)
>         if ~isempty(v{n}.Date)
> 
> 
> I really need to use the newer version of Matlab.
> Just to point out, I have this problem when I use matpower version 5.1 or 5.0
> 
> Any one can help?!
> 
> Thanks in advance,
> 
> Ayman Esmat

Reply via email to