フィルターのクリア

Find does not work as in the help of Matlab2015a ?

1 回表示 (過去 30 日間)
Maria
Maria 2015 年 8 月 11 日
コメント済み: Maria 2015 年 8 月 11 日
Hi,
I took this example from Matlab help
Elements Equal to Specific Values
To find a specific integer value, use the == operator. For instance, find the element equal to 13 in a 1-by-10 vector of odd integers.
x =
1:2:20
x =
1 3 5 7 9 11 13 15 17 19
k = find(x==13)
k =
7
Then I did it on the command window:
x = 1:2:20
x =
1 3 5 7 9 11 13 15 17 19
>> k = find(x==13)
k =
0
It should be k = 7. Am I missing something in the command window? I don't see the error, since it is exactly the copy and past from Matlab help, but in my case "find" does not work as described in the help.

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 8 月 11 日
You probably used the function find as a variable. to fix the problem type
clear find
  1 件のコメント
Maria
Maria 2015 年 8 月 11 日
just figured it out,thank you!!!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by