필터 지우기
필터 지우기

lookin for x(k)<u<=x(k+1)

조회 수: 1 (최근 30일)
Luis Isaac
Luis Isaac 2016년 2월 15일
답변: John D'Errico 2016년 2월 15일
Dear;
In matlab there is a function that could be used to locate the inverval (defined by a monotic incresing sucesion x(k)) where a variale u lies (<http://blogs.mathworks.com/loren/2008/08/25/piecewise-linear-interpolation/)>:
[k,k]=histc(u,x); % Gives k: x(k)<=u<x(k+1)
Is there a simple, like before, for looking the interval with condition x(k)<u<=x(k+1)
Thanks in advance;

채택된 답변

John D'Errico
John D'Errico 2016년 2월 15일
Histc is still there. You can still use it. If you are worried that it will disappear on you (which will probably not happen for a few years yet, they do these things slowly and give you plenty of warning) then read the help for histc. That help tells you to use histcounts instead.

추가 답변 (0개)

카테고리

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