about function argument
    6 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
Hi, I am defining a function.I want to pass a network (that i have trained and tested) to the function as an argument. So in the function i can use the network for prediction. How should i do this? can neural network be sent to a function as an argument?
Best,
0 Commenti
Risposta accettata
  Laurens Bakker
      
 il 7 Mar 2012
        Yes you can. MATLAB is not a typed language, so you could write something like:
function [outputs] = foo ( myNeuralNet, otherInputs )
    % do something with your inputs
end
and of course you are free to give the outputs and inputs any names you like.
0 Commenti
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Deep Learning Toolbox in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!