MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayNew to MATLAB?
MATLAB Central > MATLAB Newsreader > Fastest way to match the closest value in a vector... 

Subject: Fastest way to match the closest value in a vector. From: Keith Barth Date: 14 Apr, 2012 01:37:07 Message: 1 of 6 
Suppose I have a vector x in ascending order that is evenly spaced. (e.g., x=linspace(0,90,N) ) 
Subject: Fastest way to match the closest value in a vector. From: Roger Stafford Date: 14 Apr, 2012 04:08:20 Message: 2 of 6 
"Keith Barth" <denrick888@gmail.com> wrote in message <jmakc3$61e$1@newscl01ah.mathworks.com>... 
Subject: Fastest way to match the closest value in a vector. From: Doug Schwarz Date: 14 Apr, 2012 05:22:18 Message: 3 of 6 
In article <jmakc3$61e$1@newscl01ah.mathworks.com>, 
Subject: Fastest way to match the closest value in a vector. From: Roger Stafford Date: 14 Apr, 2012 06:13:10 Message: 4 of 6 
Doug Schwarz <see@sig.for.address.edu> wrote in message <seeA63A9D.01221814042012@news.eternalseptember.org>... 
Subject: Fastest way to match the closest value in a vector. From: Doug Schwarz Date: 14 Apr, 2012 12:40:45 Message: 5 of 6 
In article <jmb4hm$7nn$1@newscl01ah.mathworks.com>, 
Subject: Fastest way to match the closest value in a vector. From: Roger Stafford Date: 14 Apr, 2012 17:25:18 Message: 6 of 6 
"Keith Barth" <denrick888@gmail.com> wrote in message <jmakc3$61e$1@newscl01ah.mathworks.com>... 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.