How to approximate value to values in an array

16 vues (au cours des 30 derniers jours)
Maaz Madha
Maaz Madha le 7 Fév 2021
Réponse apportée : dpb le 7 Fév 2021
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.

Réponses (1)

dpb
dpb le 7 Fév 2021
See
doc interp1
with 'nearest' method.

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by