How to approximate value to values in an array

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.

类别

在 帮助中心 和 File Exchange 中查找有关 Matrix Indexing 的更多信息

回答:

dpb
2021-2-7

Community Treasure Hunt

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

Start Hunting!

Translated by