[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
object behavior with Octave...
From: |
James Moliere |
Subject: |
object behavior with Octave... |
Date: |
Fri, 13 Feb 2009 20:59:55 -0800 |
Hello,
I'm trying to do some object based programming with Octave.
For example, I can do this
x.a = 1
and then to display x.a, I can type
x.a
ans = 1
I can also do something like this
x.f1 = @sin
x.f2 = @cos
...running a function would look like...
x.f1(pi)
ans = 1.2246e-016
I'd like to do something like an anonymous function similar to
x.f3 address@hidden response = (arg1, arg2)
response = arg1+arg2;
endfunction
notice that this structure is starting to look like a class function?
...this is what I'm trying to do.
Thanks!
James Moliere
- Re: development version does not compile, (continued)
- Re: development version does not compile, Jaroslav Hajek, 2009/02/12
- Re: development version does not compile, Bertrand Roessli, 2009/02/12
- Re: development version does not compile, John W. Eaton, 2009/02/12
- Re: development version does not compile, Bertrand Roessli, 2009/02/13
- Re: development version does not compile, Dmitri A. Sergatskov, 2009/02/13
- Re: development version does not compile, Bertrand Roessli, 2009/02/13
- Re: development version does not compile, John W. Eaton, 2009/02/13
- Re: development version does not compile, Bertrand Roessli, 2009/02/13
- Re: development version does not compile, John W. Eaton, 2009/02/13
- Re: development version does not compile, Bertrand Roessli, 2009/02/13
- object behavior with Octave...,
James Moliere <=
- Re: object behavior with Octave..., Ben Abbott, 2009/02/14
- Re: object behavior with Octave..., James Moliere, 2009/02/14
- Message not available
- Re: object behavior with Octave..., Ben Abbott, 2009/02/14
- Message not available
- Re: object behavior with Octave..., Ben Abbott, 2009/02/14
- Re: object behavior with Octave..., John W. Eaton, 2009/02/14
- Re: object behavior with Octave..., James Moliere, 2009/02/14
- Re: object behavior with Octave..., Søren Hauberg, 2009/02/14
- Re: object behavior with Octave..., James Moliere, 2009/02/14
- Re: object behavior with Octave..., John W. Eaton, 2009/02/14
- Re: object behavior with Octave..., James Moliere, 2009/02/14