what does this command means?
조회 수: 5 (최근 30일)
이전 댓글 표시
for i =1: size(Training_String,2)
댓글 수: 0
답변 (2개)
CS Researcher
2016년 5월 5일
편집: CS Researcher
2016년 5월 5일
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
Image Analyst
2016년 5월 5일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!