How to approximate value to values in an array

4 ビュー (過去 30 日間)
Maaz Madha
Maaz Madha 2021 年 2 月 7 日
回答済み: dpb 2021 年 2 月 7 日
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.

回答 (1 件)

dpb
dpb 2021 年 2 月 7 日
See
doc interp1
with 'nearest' method.

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by