[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: operator +: nonconformant arguments (op1 is 10x10, op2 is 10x9)

From: Doug Stewart
Subject: Re: operator +: nonconformant arguments (op1 is 10x10, op2 is 10x9)
Date: Thu, 9 Aug 2018 12:03:38 -0400

On Thu, Aug 9, 2018 at 11:55 AM, Mike Miller <address@hidden> wrote:
On Thu, Aug 09, 2018 at 08:42:14 -0500, Beginner1 wrote:
> That's the problem I am pointing out in octave. Octave simplifies the matrix
> by removing rows if the row is entirely zero. And this does not allow me to
> make the sum or multiplication of matrixes since they do not coincide in
> dimensions because of this simplification.

Octave does not do this in general.

If you are right, that the A and B matrix should have 10 rows instead of
9 for this specific system, then it may be a bug in the control package.
If you want to help improve Octave, please file a bug report at

with the specifics of how the system is created, what you get, and what
you expect the result to be instead.

If you don't want to help improve Octave, then there are many ways to
pad the array with zeros to account for this in your own script.


Mike I  am trying to solve this problem, but???

I changed the last line to be
 Acl=sys.A + sys.B*ones(16,9);

now if I run it  it says sys.A is 10x10
 but if I change the last line to

 Acl=sys.A + sys.B*ones(16,10); 

It now says sys.A is 9x9

how can changing the dimensions of the ones command change 
an already stored data in sys?

DASCertificate for 206392

reply via email to

[Prev in Thread] Current Thread [Next in Thread]