help-octave
[Top][All Lists]
Advanced

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

Re: "nonconformant" error


From: Jordi Gutierrez Hermoso
Subject: Re: "nonconformant" error
Date: Tue, 16 May 2006 14:25:56 -0500

On 5/16/06, Gabriel F. Ideriha <address@hidden> wrote:
Im trying to resolve this equation, but im getting this error:
error: operator *: nonconformant arguments (op1 is 1x421, op2 is 1x211)

This is a common and nasty mistake. We need to know more about the
dimensions of Pw, T, and S. Octave is complaining about you trying to
multiply two matrices of the wrong size (this is what "noncomformant"
means). For the record, the exact  place where the complaint first
arises is in the first multiplication by S. Check the dimensions of S
to make sure they make sense.

Also, there is a convenient shorthand for scientific notation. Instead
of writing 1234*(10^-4), you can abbreviate this to 1234e-4. It may
make your code a bit easier to read.

- Jordi G. H.



reply via email to

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