what does this command means?
Afficher commentaires plus anciens
for i =1: size(Training_String,2)
Réponses (2)
CS Researcher
le 5 Mai 2016
Modifié(e) : CS Researcher
le 5 Mai 2016
0 votes
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.
Image Analyst
le 5 Mai 2016
0 votes
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.
Catégories
En savoir plus sur Loops and Conditional Statements dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!