Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Davide Cannavacciuolo
Davide Cannavacciuolo le 28 Nov 2023
Commenté : Dyuman Joshi le 28 Nov 2023
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.

Réponse acceptée

Dyuman Joshi
Dyuman Joshi le 28 Nov 2023
Also, as you are working with floating point numbers, it would be better to compare using a tolerance.
  4 commentaires
Davide Cannavacciuolo
Davide Cannavacciuolo le 28 Nov 2023
yes perfect thank you very much!
Dyuman Joshi
Dyuman Joshi le 28 Nov 2023
You're welcome!

Connectez-vous pour commenter.

Plus de réponses (0)

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by