help-octave
[Top][All Lists]
Advanced

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

Call a file in an Octave-fann function by its file/object name


From: babelproofreader
Subject: Call a file in an Octave-fann function by its file/object name
Date: Thu, 30 Aug 2012 13:10:45 -0700 (PDT)

I want to use the octave-fann bindings for Octave to call an ANN using
fann_run(ANN,input), where the ANN will be one of several possible
previously created ANNs named ANN_10, ANN_11, ANN_12 etc. up to ANN_50. The
call to fann_run will be done in a loop where the numeric part of the ANN
object variable name will be accessed during the loop. In pseudo-code what I
want is

for ii = 1:n
output(ii) = fann_run(' ANN_"numeric_value_in_index_vector_ii" ' , input(ii)
) ;
end 

where the "index_vector" will be an n length column vector something like 25
26 25 26 ... etc.

My problem is that I can't figure out the syntax so that, for example, if
index_vector(ii) contains 25 the fann_run will call the previously created
ANN_25 object variable.




--
View this message in context: 
http://octave.1599824.n4.nabble.com/Call-a-file-in-an-Octave-fann-function-by-its-file-object-name-tp4643535.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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