|
From: | Kai Torben Ohlhus |
Subject: | Re: Matrix like operations in a .oct file |
Date: | Thu, 3 Oct 2013 00:42:59 +0200 |
I'd like to write concise code in a .oct file to perform matrix
multiplication on the input column vector. The function internally creates,
for example, a row vector A of 11 elements, and then within a loop I want to
perform A * B where B is an 11 element sliding window down the input column
vector, writing the result to an output column vector as the loop
progresses. I've tried various approaches using the information on
http://wiki.octave.org/Tips_and_tricks but I can't get anything to compile -
some of the typical errors I'm getting are:
no matching function for call to ‘ColumnVector::extract(octave_idx_type,
int, octave_idx_type&, int)
cannot convert ‘RowVector’ to ‘double’ in assignment
Any pointers?
--
View this message in context: http://octave.1599824.n4.nabble.com/Matrix-like-operations-in-a-oct-file-tp4657812.html
Sent from the Octave - General mailing list archive at Nabble.com.
_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave
[Prev in Thread] | Current Thread | [Next in Thread] |