How can find all stateflow objects which used function?

1 回表示 (過去 30 日間)
galaxy
galaxy 2020 年 11 月 23 日
コメント済み: Fangjun Jiang 2020 年 11 月 24 日
Dear bros,
Suppose that I have chart block which used floor function, so how can I find where is floor function by command line?
thank you so much

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2020 年 11 月 23 日
If you use "MATLAB action language" in your chart, then the floor() function is the same as the floor() function provided by MATLAB. The help link you provided is correct. It is a built-in function. You don't get its source code.
"edit floor.m" shows you the brief help text
"doc floor" is the same as your help link.
  2 件のコメント
galaxy
galaxy 2020 年 11 月 24 日
Thank you for your feedback
I means how to find text in chart objects. (text in this case is floor(...) function)
Fangjun Jiang
Fangjun Jiang 2020 年 11 月 24 日
You could use Stateflow API to search (find) the "floor" keyword. It may not be 100% robust but mostly should fit the need.
web(fullfile(docroot, 'stateflow/api/overview-of-the-stateflow-api.html'))

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

カテゴリ

Help Center および File ExchangeComplex Logic についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by