|
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
dimfunc.m
Description: Binary data
[Prev in Thread] | Current Thread | [Next in Thread] |