How to find the x value of a function given by points?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Davide Cannavacciuolo
am 28 Nov. 2023
Kommentiert: Dyuman Joshi
am 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.
0 Kommentare
Akzeptierte Antwort
Dyuman Joshi
am 28 Nov. 2023
Use logical indexing - Find Array Elements That Meet a Condition
Also, as you are working with floating point numbers, it would be better to compare using a tolerance.
4 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!