what does this command means?

回答 (2 件)

CS Researcher
CS Researcher 2016 年 5 月 5 日
編集済み: CS Researcher 2016 年 5 月 5 日

0 投票

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 日

0 投票

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.

カテゴリ

ヘルプ センター および File ExchangeLoops and Conditional Statements についてさらに検索

製品

タグ

タグが未入力です。

質問済み:

2016 年 5 月 5 日

回答済み:

2016 年 5 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by