what does this command means?

1 Ansicht (letzte 30 Tage)
prabi p
prabi p am 5 Mai 2016
Beantwortet: Image Analyst am 5 Mai 2016
for i =1: size(Training_String,2)

Antworten (2)

CS Researcher
CS Researcher am 5 Mai 2016
Bearbeitet: CS Researcher am 5 Mai 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.

Image Analyst
Image Analyst am 5 Mai 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.

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by