필터 지우기
필터 지우기

How to approximate value to values in an array

조회 수: 6 (최근 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 CenterFile Exchange에서 Logical에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by