help-octave
[Top][All Lists]
Advanced

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

Matrix like operations in a .oct file


From: babelproofreader
Subject: Matrix like operations in a .oct file
Date: Wed, 2 Oct 2013 08:22:58 -0700 (PDT)

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.


reply via email to

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