octave-maintainers
[Top][All Lists]
Advanced

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

A better way to act on a dim of an N-d array?


From: Ben Abbott
Subject: A better way to act on a dim of an N-d array?
Date: Thu, 31 Jan 2008 08:49:26 -0500


On Jan 29, 2008, at 10:35 PM, Ben Abbott wrote:


On Jan 29, 2008, at 8:30 PM, Ben Abbott wrote:

While working on quantile and prctile functions for Octave, I am in need to functionally operate on the dim-th dimension of a N-d array.

What I'm looking to do is allow a specific dimension of an N-d array to be acted upon by a function that returns a vector of a consistent length.

The algirithms for calculating the quanitles of a sample are sufficiently varied that the methods used by mean(), median(), etc, to support N-d arrays, are insufficient for my application.

As I am not a competent c/c++ programmer, I chose to do the job in an m-file ... but is there a better way to do this?

Ben

Attachment: dimfunc.m
Description: Binary data



reply via email to

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