I agree this is confusing. It turns out that runcpf() really should always 
require two input arguments, the base case and the target case. And it should 
always throw an error (with a clear error message) if the latter is not 
provided. Instead, currently, it provides 'case9target' as a default value for 
the target case. This means it works for when using 'case9' as the base case, 
but throws the error you encountered if you provide any other base case without 
providing the target.

Simply provide a consistent pair of both base and target cases and it should 
work just fine with other systems.

And I’ll fix this so it requires that the user provide both cases on input, 
with a clear error message if the 2nd is missing.

   Ray



On Sep 5, 2020, at 12:04 PM, Kaled Zareer 
<[email protected]<mailto:[email protected]>> wrote:

Hi all,

The command runcpf('case9') works well. However when I change the system (i.e 
case 39, case 118), I obtain the following error:

''Matrix dimensions must agree.

Error in runcpf (line 316)
 if any(mpcb.bus(:, BUS_TYPE) ~= mpct.bus(:, BUS_TYPE))''

Your help is highly appreciated.

Thank you

Khaled


Reply via email to