필터 지우기
필터 지우기

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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by