How could I make these functions as a loop?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi all, How could I make these functions as a loop? these is the functions output1=net1(Test_Inputs); output2=net2(Test_Inputs); output3=net3(Test_Inputs); output4=net4(Test_Inputs); output5=net5(Test_Inputs);
0 Commenti
Risposta accettata
MHN
il 27 Apr 2016
It is not a good idea to use this kind of coding, but the following code will do what you want.
for i = 1:5
a = sprintf('output%d=net%d(Test_Inputs);', i,i);
eval(a)
end
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Loops and Conditional Statements 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!