フィルターのクリア

what is meaning of this plzz tell me

3 ビュー (過去 30 日間)
Mohd Shahrukh
Mohd Shahrukh 2018 年 3 月 21 日
コメント済み: Star Strider 2018 年 3 月 26 日
feat=[]; class=[];

採用された回答

Star Strider
Star Strider 2018 年 3 月 21 日
Those assignments set the ‘feat’ and ‘class’ variables to empty arrays [].
Note that class (link) is a MATLAB function, and assigning a variable the same name ‘overshadows’ it. This will cause problems later if you want to use the class function.
  2 件のコメント
Mohd Shahrukh
Mohd Shahrukh 2018 年 3 月 26 日
Thnkuu so much
Star Strider
Star Strider 2018 年 3 月 26 日
As always, my pleasure.

サインインしてコメントする。

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2018 年 3 月 21 日
When you assign [] to an entire variable, it assigns a double precision value that is 0 rows by 0 columns -- the empty double precision array.
When you assign [] to an indexed variable, such as feat(3,:) = [], then the meaning is quite different: it means to delete the indicated portion of the variable.
  1 件のコメント
Mohd Shahrukh
Mohd Shahrukh 2018 年 3 月 26 日
Thnks man

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by