How to approximate value to values in an array
Ältere Kommentare anzeigen
Hi all
So I have a bunch of values in an array(serial time number in seconds) and I want it so that everytime I run the clock function and convert it into a serial time number(in seconds), it approximates it to the nearest given value in the array.
Antworten (1)
dpb
am 7 Feb. 2021
See
doc interp1
with 'nearest' method.
Kategorien
Mehr zu Logical finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!