[Top][All Lists]

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

Re: Matrix like operations in a .oct file

From: Kai Torben Ohlhus
Subject: Re: Matrix like operations in a .oct file
Date: Thu, 3 Oct 2013 00:42:59 +0200

On Wed, Oct 2, 2013 at 5:22 PM, babelproofreader <address@hidden> wrote:
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 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:
Sent from the Octave - General mailing list archive at
Help-octave mailing list


your problem description is too generic to give you some helpful advice. Can you provide a code sample you're trying to compile, your operating system and the octave version you are using?

A good starting point for writing .oct-files is the manual:

HTH, Kai

reply via email to

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