|
From: | Doug Stewart |
Subject: | Re: operator +: nonconformant arguments (op1 is 10x10, op2 is 10x9) |
Date: | Fri, 10 Aug 2018 11:33:05 -0400 |
I have figured out what is happening.On Thu, Aug 9, 2018 at 1:53 PM, Mike Miller <address@hidden> wrote:On Thu, Aug 09, 2018 at 13:09:45 -0400, Doug Stewart wrote:
> I modified the end of your file to:
>
> n_cycle
> if (n_cycle ==1)
> Acl=sys.A + sys.B*ones(16,9);
> else
> Acl=sys.A + sys.B*ones(16,10);
> endif
>
> now it runs 15 times.
> What this shows is that the first tome through you have a 9x9
> and after that you have 10x10 sys.A
Yes, that is one obvious workaround. I thought you were interested in
investigating why that is.
I think Beginner1 is attempting to claim that sys.A should always be
10×10, and sys.B should always be 10×16, and that there is a bug in here
somewhere. I don't yet know whether that is true.
That's why I asked for a bug report, we need a concise explanation of
what is passed in, what is returned, and how that differs from what is
expected.
--
mike
The loop uses kv from 0 to 15the code forms:sys_olsys_ilsys_nbsys_vscThe code then uses the connect comandsys=connect(sys_ol,sys_il,sys_nb,sys_vsc,inname_group, outname_group); to connect them all together into one big sys.On the 1st pas kv=0and this makes one row all zeroes, and connect then eliminates that row!!!!if we set the 15 voltages to not start at 0 but close to zero then all works as expected.cycle_vector = linspace(0.0000001,15,15);you probably wantcycle_vector = linspace(0.0000001,15,16);That is a work around that will get you going.We will have to look at connect and see why it is dropping the 0 vector.
test444124.m
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |