[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: non-linear fitting , syntax-problem
From: |
Sergei Steshenko |
Subject: |
Re: non-linear fitting , syntax-problem |
Date: |
Fri, 12 Mar 2010 20:21:19 -0800 (PST) |
--- On Fri, 3/12/10, Stefan Neumann <address@hidden> wrote:
From: Stefan Neumann <address@hidden>
Subject: non-linear fitting , syntax-problem
To: address@hidden
Date: Friday, March 12, 2010, 2:29 PM
[snip]
Obviously the second example does not work because of the multiplication of 2
vectors x(:,1) * x(:,2)
What is the correct syntax in this case, or how should I rewrite the script?
TIA, stn
-----Inline Attachment Follows-----
_______________________________________________
Help-octave mailing list
address@hidden
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
Well, I didn't delve into details, but if you want element by element
multiplication of two vectors of the same size and you want the result to
be a vector of the same size, then it should be
x(:,1) .* x(:,2)
- pay attention to the dot before the asterisk.
Regards,
Sergei.