image thumbnail

updated 1 month ago

Separate Digits from a single number in Simulink by James

James (view profile)

Separate Digits from a single number in Simulink (decimal, digit, simulink)

Separating_Integer.slx

image thumbnail

updated 3 months ago

integer_partitions(n,count) by Igor Peretta

Computes all partitions of a given nonnegative integer n. (integer partition par..., integer, partition)

integer_partitions(n,count)

image thumbnail

updated 7 months ago

Variable Precision Integer Arithmetic by John D'Errico

John D'Errico (view profile)

Arithmetic with integers of fully arbitrary size. Arrays and vectors of vpi numbers are supported. (finite field, integer, biginteger)

demo_vpi

base2vpi(B,base)

bin2vpi(B)

image thumbnail

updated 1 year ago

Random Integer Generator by Edward Zechmann

This program quickly outputs n random integers in the specified range from a to b. (random, random integer, integer)

rand_int(a, b, n, sorted, no_duplicates, make_plot)

image thumbnail

updated almost 2 years ago

Three different bijections or pairing functions between N and N^2 (including Cantor polynomials) by Laurent Duval

Pairing functions: encoding of two natural numbers into a single natural number (and vice-versa) (bijection, integer, cantor polynomials)

Bijection_Pairing_N_N2(index_In,flag_Pair)

image thumbnail

updated 2 years ago

Insert commas into numbers by Jack Peterson

Insert commas into numbers. (comma, number, integer)

insert_commas(N)

image thumbnail

updated almost 3 years ago

Surrogate Model Optimization Toolbox by Julie

Julie (view profile)

Surrogate model optimization algorithm for computationally expensive global optimization problems (global optimization, surrogate model, derivativefree)

aresparams.m

BumpinessMinSampling(Data, maxeval, Surrogate, lambda, ga...

CandidatePointSampling(Data,maxeval,Surrogate,lambda,gamm...

image thumbnail

updated 3 years ago

Recursive Integer Guessing Game by Adam Gripton

A recursive algorithm that queries an objective function to guess an unknown integer. (guess, game, function)

guessgame(isleq,n,k)

image thumbnail

updated almost 4 years ago

This program finds prime numbers manually by nathanial hapeman

matlab already has a function to do this but i wanted to see if i could code it manually (prime, for, while)

prime_numbers.m

image thumbnail

updated 4 years ago

vectorized fibonacci by Michael Völker

Given any integer array n, compute an array with the nth fibonacci numbers. (fibonacci number, integer, golden ratio)

fibonacci(n)

image thumbnail

updated 5 years ago

WWW.RANDOM.ORG random integers/sequences/strings by Oleg Komarov

Oleg Komarov (view profile)

Get true random integers, sequences or strings (rand, integer, randi)

randorg(n, range, varargin)

seqorg(range, varargin)

strorg(n, len, varargin)

image thumbnail

updated 5 years ago

Unique Random Integer List by Ibraheem Al-Dhamari

A simple function that produce unique random Integer List (unique, integer, random)

myrand(a,b)

image thumbnail

updated 5 years ago

space125: Almost equally spaced points in logarithmic space by Petr Pošík

Generate points ..., 1, 2, 5, 10, 20, ... often useful for log-plots when integer values needed. (semilogx, semilogy, loglog)

space125: Almost equally spaced points in logarithmic space

space125(a,b)

image thumbnail

updated almost 6 years ago

num2vpi - Converts input exactly into vpi by James Tursa

James Tursa (view profile)

Converts double inputs larger than 2^53-1, or char inputs with exponents, exactly into vpi. (vpi, variable, precision)

num2vpi(x)

image thumbnail

updated almost 6 years ago

Linear Mixed Integer Program Solver by Thomas Trötscher

Solve linear mixed integer problems with a branch and bound method. (mixed integer program, mip, linear programming)

mipoptions.m

lpr.m

miprog.m

image thumbnail

updated 6 years ago

isodd: a pedestrian parity checker by us

us (view profile)

ISODD returns TRUE for integers of any numeric MATLAB class that are not evenly divisible by 2 (integer, parity, odd)

isodd.m

image thumbnail

updated almost 7 years ago

Find Numbers in a String by Edward Zechmann

Finds flaoting point numbers in a string including: complex, real, integers, and currency (dollars). (strings, numbers, string)

find_nums(str, flag1, decimal_point, complex_var, spaces)

image thumbnail

updated 7 years ago

Partitions of an integer by John D'Errico

John D'Errico (view profile)

List all partitions of an integer (partitions, integer, partition)

partitions_demo

partitions(total_sum,candidate_set,max_count,fixed_count)

image thumbnail

updated 7 years ago

Integer computation extended beyond 32-bit by Steven Huang

Steven Huang (view profile)

compute integer arithmatic beyond 32-bit, Matlab's limit (integer, computation, extend)

extended_precision_arith.m

image thumbnail

updated 7 years ago

int2strz.m by Carlos Adrian Vargas Aguilera

Same as int2str but with zero padding to the left. (strings, int2str, sprintf)

int2strz.m

image thumbnail

updated 7 years ago

SWIDDER virtual 2D-slider by Vassili Pastushenko

virtual 2D slider for GUI integer or float, NaN below minX, minY (data exploration, 2d slider, gui)

bip(pib)

cheer(N)

slidder(varargin)

image thumbnail

updated 7 years ago

List Factors by Jeff Miller

Jeff Miller (view profile)

List all integer factors of a number (factors, factorization, integer)

listfactors(x)

image thumbnail

updated almost 8 years ago

intbitcopy and uintbitcopy by James Tursa

James Tursa (view profile)

Exact bit copy of variable into signed int__ or unsigned uint__ of same element size (external interface, integer, bit)

intbitcopy.m

uintbitcopy.m

image thumbnail

updated almost 8 years ago

writereg.m by Alex Nelson

write string and integer values to Windows Registry (external interface, windows registry, regedit)

writereg(rootkey,subkey,varargin)

image thumbnail

updated 8 years ago

Integer order radial-2D Gaussian function. by Adam Wyatt

Adam Wyatt (view profile)

Generates a 'radial' Gaussian function in 2D of any positive integer order. (integer, radial, 2d)

gauss2D_R(X, Y, dx, dy, theta, order)

image thumbnail

updated 8 years ago

Find base-b expansion of an integer by Dimitri Shvorob

(Cf. DEC2BASE) (base, expand, expansion)

basexp.m

image thumbnail

updated 8 years ago

Two's Complement by Chad Webb

Compute the two's complement value of an unsigned integer (twos complement, compute, utility)

TwosComplement(x, numBits)

image thumbnail

updated 8 years ago

ISWHOLE by Mukhtar Ullah

Mukhtar Ullah (view profile)

True for integers(whole numbers). (integer, whole number, true)

iswhole(varargin)

image thumbnail

updated almost 9 years ago

roundd.m by Carlos Adrian Vargas Aguilera

Rounds an array up to N digits from the left. (matrices, round, integer)

roundd.m

image thumbnail

updated 9 years ago

Multidimensional interpolation with integer inputs by Steve Eddins

Steve Eddins (view profile)

Multidimensional interpolation supporting integer inputs without converting to double (approximation, interpolation, multidimensional inte...)

iminterpn(varargin)

image thumbnail

updated 9 years ago

RandIntegers by Skynet

Skynet (view profile)

Selects random integers between and inclusive of specified lower and upper limits. (rand, random, int)

randintegers.m

image thumbnail

updated 9 years ago

Morphological Character Recognition by Jahanzeb Rajput

INTREC Performs morphological character recognition (morphology, segmentation, character recognition)

intrec(Z)

image thumbnail

updated 10 years ago

Persistent Counters by Jøger Hansegård

Create counters that keep their values even if your functions are interrupted for some reason. (persistent counter, create, integer)

counterdelete.m

counterval.m

counterexists.m

image thumbnail

updated almost 11 years ago

ISPR - Use Java to determine arbitrarily large probable primes by Michael Kleder

Michael Kleder (view profile)

Use a Java to rapidly determine whether an arbitrarily large positive integer is a prime (symbolic math, probable, prime)

ispr(varargin)

image thumbnail

updated 11 years ago

MYRANDINT -- Random Integer Generation by David Fass

David Fass (view profile)

Random integers drawn uniformly from a specified set. (statistics, probability, random)

myrandint(outputRow,outputCol,outputRange,varargin)

image thumbnail

updated 11 years ago

partitiontable.m by David Terr

David Terr (view profile)

Given a nonnegative integer n, compute a table of the unrestricted partition function p(m) for m<=n. (symbolic math, partition function, nonnegative)

partitiontable(n)

image thumbnail

updated 11 years ago

Fibonacci.m by David Terr

David Terr (view profile)

Given an integer n, return the nth Fibonacci number. (symbolic math, fibonacci number, integer)

Fibonacci(n)

Contact us