[Top][All Lists]

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

[no subject]

From: Andrea Latina
Date: Thu, 29 Nov 2018 23:29:55 +0100

Hello everybody!

I hope you all are doing well.

I have a small problem with my Octave. Something that used to work, doesn't seem to work any more (I have tested it on versions 4.2.1 and 4.4.1) :

A = [];
A += ones(4,1); % a matrix

In the past these lines used to work, now they give me an error:

error: operator +: nonconformant arguments (op1 is 0x0, op2 is 4x1)

Is this change intentional ?

I found that flexibility very useful when I needed to accumulate matrices in A, but didn't know a priori how big these matrices would be. The dummy initialisation was needed to create the variable, and allow me to start accumulating...

Is there any chance to see the "old behaviour" work again? Or, does anybody know an alternative (and similarly concise) way to do this?

Thank you!

reply via email to

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