フィルターのクリア

index must be a positive integer or logical

1 回表示 (過去 30 日間)
sabrina
sabrina 2014 年 5 月 18 日
回答済み: Mischa Kim 2014 年 5 月 18 日
Hi, Please how to solve this problem : "Attempted to access f(0); index must be a positive integer or logical" thnks

採用された回答

Mischa Kim
Mischa Kim 2014 年 5 月 18 日
Sabrina, difficult to say without seeing the code. However, in MATLAB indexing starts with 1, not 0:
>> a = [4 3 2 1]
a =
4 3 2 1
>> a(0)
Subscript indices must either be real positive integers or logicals.
>> a(1)
ans =
4

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrix Indexing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by