Function for finding integers in open interaval
Version 1.0.0.0 (1.08 KB) by
Ilya Prokin
It takes interval endpoints (a;b) as a parameters and return integers between values of "a" and "b".
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 LinuxCategories
Find more on Characters and Strings in Help Center and MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |