what does this command means?

조회 수: 5 (최근 30일)
prabi p
prabi p 2016년 5월 5일
답변: Image Analyst 2016년 5월 5일
for i =1: size(Training_String,2)

답변 (2개)

CS Researcher
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.

Image Analyst
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.

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by