フィルターのクリア

How to find the x value of a function given by points?

2 ビュー (過去 30 日間)
Davide Cannavacciuolo
Davide Cannavacciuolo 2023 年 11 月 28 日
コメント済み: Dyuman Joshi 2023 年 11 月 28 日
tinterval=[0:0.001:40]; %sec
acc=3;
w0=30;
Wspeed=acc*tinterval+w0;
tetae=Wspeed.*tinterval;
tetaeFract=rem(tetae,360);
I need to find the tinterval value when tetafract is equal to 60, and I need this as a value to use later in the script, I don't need it graphically.
Thank you in advance.

採用された回答

Dyuman Joshi
Dyuman Joshi 2023 年 11 月 28 日
Also, as you are working with floating point numbers, it would be better to compare using a tolerance.
  4 件のコメント
Davide Cannavacciuolo
Davide Cannavacciuolo 2023 年 11 月 28 日
yes perfect thank you very much!
Dyuman Joshi
Dyuman Joshi 2023 年 11 月 28 日
You're welcome!

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

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by