what does this command means?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
for i =1: size(Training_String,2)
0 Commenti
Risposte (2)
CS Researcher
il 5 Mag 2016
Modificato: CS Researcher
il 5 Mag 2016
Assuming Training_String is of size M x N, the command runs a for loop where i goes from 1 to N. Basically a loop which runs N times.
0 Commenti
Image Analyst
il 5 Mag 2016
The size() function gives the length of the dimension you give as the second argument. 2 means columns. So the loop will do as many iterations as there are columns in the Training_String array.
0 Commenti
Vedere anche
Categorie
Scopri di più su Loops and Conditional Statements in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!