Let’s take this discussion off-list, since I’m pretty sure the issue is related
to your installation, rather than a problem with MATPOWER.
The following command, should obviously be using straight, single quotes …
probably I just didn’t catch it when my mail client automatically “fixed” it …
v = ver('Matlab')
Assuming mpver is still giving you the same result as before, please also
include the output of the following sequence of commands, with a clean install
of MATPOWER 5.1, and right after launching Matlab (before executing other
Matlab commands) …
path
dbstop if error
mpver
v
v{n}
Hopefully, we can get this sorted out for you.
Ray
> On Jan 26, 2016, at 4:51 AM, Ayman Esmat <[email protected]> wrote:
>
> Dear Prof. Ray,
>
> I am still facing the same problem evern though I reinstalled my Matlab many
> times and I even changed my Windows version and I still have the same problem.
>
> I was reading your email again and I noticed something, in your email dated
> 12/16/2015 you said:
> Could you post the output of the following commands?
>
> which ver
> which isempty
> v = ver('Matlab’)
> path
>
> But I noticed that what in your command of v you didn't use an apostrophe
> after the word Matlab.
> I don't know if this was intedend by you or it was a typo mistake?
>
> This is why my response to you was :
>
> 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,
>
>
> On Wed, Dec 16, 2015 at 7:31 PM, Ayman Esmat <[email protected]
> <mailto:[email protected]>> wrote:
> I see. Well, maybe I should reinstall my Matlab.
>
> Thank you very much,
>
>
>
> On Wed, Dec 16, 2015 at 6:53 PM, Ray Zimmerman <[email protected]
> <mailto:[email protected]>> wrote:
> 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]
>> <mailto:[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
>>
>>
>
>
>