help-octave
[Top][All Lists]
Advanced

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

Re: "nonconformant" error


From: Gabriel F\. Ideriha
Subject: Re: "nonconformant" error
Date: Tue, 16 May 2006 16:59:41 -0300

Ok!!
 
Even with all the matrices with the same size, I still get this error... (
> > error: operator *: nonconformant arguments (op1 is 1x421, op2 is 1x421))
Why??
 
Thanks for the help!
 
De: "Keith Goodman" address@hidden
Para: "Gabriel F. Ideriha" address@hidden
Cópia:
Data: Tue, 16 May 2006 12:53:51 -0700
Assunto: Re: "nonconformant" error
> I think it's a good idea to keep this dicussion on the mailing list so
> that others can learn.
>
> S*T is matrix multiplication.
>
> S.*T is element by element multiplication. This one works when
> matrices are the same size.
>
>
> On 5/16/06, Gabriel F. Ideriha wrote:
> >
> >
> > But even with all matrices with the same size...
> >
> > octave:30> whos S T Pw
> > *** local user variables:
> >
> > Prot Name Size Bytes Class
> > ==== ==== ==== ===== =====
> > rwd Pw 1x421 3368 matrix
> >
> > rwd S 1x421 24 range
> >
> > rwd T 1x421 24 range
> >
> > Total is 1263 elements using 3416 bytes
> >
> >
> > ...I still get the same error!!
> >
> >
> > octave:30> P=Pw+(8.24493*e-1-4.0899*e-3*T+7.6438*e-5*T.^2-8.2467*e-7*T.^3+5.3875*e-9*T.^4)*S+(-5.72466*e-3+1.0227*e-4*T-1.6546*e-6*T^2)
> > error: operator *: nonconformant arguments (op1 is 1x421, op2 is 1x421)
> > error: evaluating binary operator `*' near line 30, column 80
> > error: evaluating binary operator `+' near line 30, column 5
> > error: evaluating binary operator `+' near line 30, column 82
> > error: evaluating assignment _expression_ near line 30, column 2
> >
> >
> > Thanks!!!
> >
> >
> >
> > De: "Keith Goodman" address@hidden
> >
> > Para: "Gabriel F. Ideriha" address@hidden
> >
> > Cópia:
> >
> >
> >
> > Data: Tue, 16 May 2006 12:31:37 -0700
> >
> > Assunto: Re: "nonconformant" error
> >
> > > You can't multiply S*T or S.*T when S is 1x211 and P is 1x421. It has
> > > no meaning.
> > >
> > > You can multiply S*T if, for example, S is 100x1 and T is 1X100. You
> > > can multiply S.*T if, for example, S is 100x200 and T is 100x200.
> > >
> >
> > > On 5/16/06, Gabriel F. Ideriha wrote:
> > > >
> > > >
> > > > I got
> > > >
> > > > *** local user variables:
> > > > Prot Name Size Bytes Class
> > > > ==== ==== ==== ===== =====
> > > > rwd Pw 1x421 3368 matrix
> > > > rwd S 1x211 24 range
> > > > rwd T 1x421 24 range
> > > > Total is 1053 elements using 3416 bytes
> > > >
> > > >
> > > > There is someway to change the S size without changing my data? Or I'll have to change into a 1x421 matrix?
> > > >
> > > > Thanks for the help!!
> > > >
> > > > De: "Keith Goodman" address@hidden
> > > >
> > > >
> > > >
> > > > Para:"Gabriel F. Ideriha" address@hidden
> > > >
> > > > Cópia: "help-octave" address@hidden
> > > >
> > > > Data: Tue, 16 May 2006 12:16:02 -0700
>

reply via email to

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