find_index.m

Find all index in a data array at the limit
1.1K Downloads
Updated 28 Mar 2005

No License

function edge = find_index(data, limit)
% ------------------------------
% Author: Christian Schultes
% User: schultcadm
% Date: 21-Mar-2005
% ------------------------------
%
% function edge = find_index(data, limit)
%
%
% data ........... array with one or two columns
% case 1 .. array with one columns (only data)
% case 2 .. array with two columns (time + data)
%
% limit ........... scalar negative or positive or zero
%
% edge ............ array with two columns
% first column is the index for true (rising)
% second column is the index for is not true (falling)
%

Cite As

Christian Schultes (2025). find_index.m (https://se.mathworks.com/matlabcentral/fileexchange/7272-find_index-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Matrix Indexing in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0