Function for finding integers in open interaval

It takes interval endpoints (a;b) as a parameters and return integers between values of "a" and "b".
133 Downloads
Updated 16 Apr 2012

View License

function ints = FindIntsBetween(a,b)
%It find all integer numbers in (a;b)
g_ints=fix(a):fix(b);
fnd=find(a<g_ints & g_ints<b);
ints=g_ints(fnd);
end

Cite As

Ilya Prokin (2024). Function for finding integers in open interaval (https://www.mathworks.com/matlabcentral/fileexchange/36204-function-for-finding-integers-in-open-interaval), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2011b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Characters and Strings 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