[Top][All Lists]

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

Re: Class of User Types [Was: Moving code from octave-forge to octave [W

From: David Bateman
Subject: Re: Class of User Types [Was: Moving code from octave-forge to octave [Was: polyderiv problem?]]
Date: Fri, 25 Feb 2005 16:36:37 +0100
User-agent: Mozilla Thunderbird 0.8 (X11/20040923)

John W. Eaton wrote:

On 25-Feb-2005, Paul Kienzle <address@hidden> wrote:

| I was thinking:
| | z = zeros(4,4,class(X));
|     for i=1:columns(X), z(1:i,:) = X(1:i,:); end
| | so z would already be known to be a galois type but with an | indeterminate
| field.

I'm not sure I understand all of the discussion, but doesn't repamt
do what you want for creating an array of the right size and type?
The current implementation might not be right for all derived types,
but I think it is the function to use here.


repmat doesn't unless you can do repmat(x([]),n,m) which I don't think you can..


David Bateman                                address@hidden
Motorola Labs - Paris +33 1 69 35 48 04 (Ph) Parc Les Algorithmes, Commune de St Aubin +33 1 69 35 77 01 (Fax) 91193 Gif-Sur-Yvette FRANCE

The information contained in this communication has been classified as: [x] General Business Information [ ] Motorola Internal Use Only [ ] Motorola Confidential Proprietary

reply via email to

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