NEARESTPOINT Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: nearestpoint.m
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Josh (View more)

NEARESTPOINT script description:




Publisher review:
NEARESTPOINT - find the nearest value in another vector IND = NEARESTPOINT(X,Y) finds the value in Y which is the closest to each value in X, so that abs(Xi-Yk) => abs(Xi-Yj) when k is not equal to j.IND contains the indices of each of these points.Example: NEARESTPOINT([1 4 12],[0 3]) -> [1 2 2][IND,D] = ... also returns the absolute distances in D,that is D == abs(X - Y(IND))NEARESTPOINT(X, Y, M) specifies the operation mode M: 1) 'nearest' : default, same as above2) 'previous': find the points in Y that just precedes a point in XNEARESTPOINT([1 4 12],[0 3],'previous') -> [1 1 1]3) 'next' : find the points in Y that directly follow a point in XNEARESTPOINT([1 4 12],[0 3],'next') -> [2 NaN NaN]If there is no previous or next point in Y for a point X(i), IND(i)will be NaN.X and Y may be unsorted.This function is quite fast, and especially suited for large arrays withtime data. For instance, X and Y may be the times of two separate events, like simple and complex spike data of a neurophysiological study. Run NEARESTPOINT('test') to see a test of it's running time Requirements: ยท MATLAB Release: R13
NEARESTPOINT is a Matlab script for Statistics and Probability scripts design by Josh. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5