It looks like your C:\Program Files\MATLAB\R2014b\toolbox\matlab\general\ver.m
file somehow got corrupted. You should probably either reinstall Matlab or see
if you can restore a clean version of that file from a backup.
Ray
> On Dec 16, 2015, at 12:41 PM, Ayman Esmat <[email protected]> wrote:
>
> This is the output that I got:
>
>
> C:\Program Files\MATLAB\R2014b\toolbox\matlab\general\ver.m
>
> built-in (C:\Program Files\MATLAB\R2014b\toolbox\matlab\elmat\isempty)
>
> v = ver('Matlab’)
>
> |
>
> Error: String is not terminated properly.
>
>
> Thank you for your kind help,
>
>
> On Wed, Dec 16, 2015 at 4:20 PM, Ray Zimmerman <[email protected]
> <mailto:[email protected]>> wrote:
> 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]
>> <mailto:[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
>
>