help-octave
[Top][All Lists]
Advanced

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

enum in octave?


From: Jim H
Subject: enum in octave?
Date: Fri, 10 Oct 2008 11:49:03 -0700 (PDT)

Hi,
I think the question I want to ask is "does Octave have the concept of enum
as in C?"

My application:  I would like to pass a set of arguments to a function in an
array (p[ ]), but I want to refer to the elements of the array by mnemonic
names like:

y[BOB] = p[R]*y[BOB]*(1 - y[BOB]/p[K]);

in C this could be done with #define R 0  #define K 1, etc. or by an enum
structure.

Possible in octave?

Jim 
-- 
View this message in context: 
http://www.nabble.com/enum-in-octave--tp19923940p19923940.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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