image thumbnail

updated 14 days ago

Generate Random Numbers from a 2D Discrete Distribution by Tristan Ursell

Random numbers from any 2D discrete probability distribution, at any resolution. (discrete, distribution, generate)

[x0,y0]=pinky(Xin,Yin,dist_in,varargin)

image thumbnail

updated 14 days ago

Send Messages to Emails and/or Cell Phones by Georgios Papachristoudis

This function sends messages to emails and/or cell phones (from a Gmail account) (utilities, email, phone)

send_msg(recipients, subject, message, carrier)

image thumbnail

updated 3 months ago

easy matlab and shell interaction library (ez.m) by Jerry

make it easy to interact with shell, os in matlab (shell, matlab, python)

image thumbnail

updated 8 months ago

sum_digits by Daniel Herber

Find the sum of digits of a vector and an interesting script that uses it (digits, number, summation)

sum_digits(x)

dsum_eq_rsum.m

image thumbnail

updated 9 months ago

mat2num by Kashi Khorasani

This function converts the input (matrix) into an integer/number comprised of all of the digits. (num2mat, mat2num, vector)

mat2num.m

image thumbnail

updated 9 months ago

num2mat by Kashi Khorasani

This function converts the input (integer) into a matrix comprised of all of the integer's digits. (num2mat, mat2num, factory)

num2mat.m

image thumbnail

updated 1 year ago

Naming figures (fig.m) by Aslak Grinsted

Create new figures with a window title which can be used as a handle. (annotation, customization, figure)

H=fig(varargin)

image thumbnail

updated 1 year ago

DateStr2Num by Jan Simon

Convert date string to date number - C-Mex: much faster than DATENUM (date, number, serial)

DateStr2Num(S, F)

uTest_DateStr2Num(doSpeed)

image thumbnail

updated 1 year ago

Insert commas into numbers by Jack Peterson

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

insert_commas(N)

image thumbnail

updated 2 years ago

NUMBER SYSTEMS/ BASE CONVERTER by Divakar Roy

Convert a number between different number systems-hex,oct,bin,dec. (symbolic math, convert, change)

NUMBER SYSTEMS BASE CONVERTER

[e,factor]=div2(a)

b=str2num(a)

image thumbnail

updated 2 years ago

Random Numbers from a Discrete Distribution by Tristan Ursell

Simple algorithm to generate random numbers from a user-defined discrete probability distribution. (random, number, variable)

gendist(P,N,M,varargin)

image thumbnail

updated 3 years ago

Method to find prime numbers by Gabriel Kasser

The goal is to present an algorithm that provides the prime numbers in an extremely simple way (math, prime, number)

fnc(x,b)

primeclassique.m

primemethod3.m

image thumbnail

updated 3 years ago

Find sum of digits in a number (like 4209=15) by Mohammad Saadeh

Enter a number and calculate the sum of all digits (digits, summation, number)

Find_sum_digits.m

image thumbnail

updated 4 years ago

Find myltiple numbers in array by Stratis Gavves

This function returns the indexes of multiple elements in an array. (find, number, array)

multiFind(array, nums, varargin)

image thumbnail

updated 4 years ago

isMatlabVer by Jan Simon

Compare Matlab version number using < <= > >= ==, considers v7.10, fast Mex (version, verlessthan, compare)

TestisMatlabVer(doSpeed)

isMatlabVer(varargin)

image thumbnail

updated almost 5 years ago

ROMAN2NUM and NUM2ROMAN: modern Roman numerals by Fran├žois Beauducel

Converts Roman numerals to and from integers (numerals, converter, number)

num2roman.m

roman2num.m

image thumbnail

updated almost 6 years ago

number plate segmentation of a car by k sreenath

the whole numbers on a number plate of a car can be segmented (number, image segmentation)

image thumbnail

updated 6 years ago

CORDIC for phase and magnitude computation by Krishna Sankar M

Uses the cordic approach to find the phase and magnitude of a complex number (cordic, phrase, magnitude)

image thumbnail

updated 6 years ago

Excel Column Name to Number by Matt G

Converts a cell array of Excel column names to an array of Excel column numbers (data import, data export, excel)

xlsColStr2Num( colChar )

image thumbnail

updated almost 7 years ago

List Factors by Jeff Miller

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

[allfactors]=listfactors(x)

image thumbnail

updated almost 7 years ago

Extract numbers only by PWANG

extract only numbers from text file (data import, data export, xtract)

readtext(text, delimiter, comment, quotes, options)

demo.m

image thumbnail

updated almost 9 years ago

oblique shock wave relations by Nir Kalush

Given two of three variables, finds the third variable (Mach num, Beta, Theta) ... (aerospace, aeronautics, aerodef)

image thumbnail

updated 9 years ago

A C-mex Function to find N largest number in a Matrix by Changshun Deng

A c-mex function to find N largest number in a matrix. (max, cmex, c mex)

nmax.m

nthmax.m

image thumbnail

updated 9 years ago

isnumber by Ben Barrowes

Similar to isletter for numbers. (isletter, isnumber, number)

out=isnumber(str,incDecimal)

image thumbnail

updated 9 years ago

num2eng by Jordi Palacin

Number representation with engineering units. (strings, engineering units, number)

num2eng(valor,unidad)

image thumbnail

updated 9 years ago

enum: a pedestrian enumerator by us

To create an enumerating vector from a list of terminators. (matrices, enumerate, index)

e=enum(n,varargin)

image thumbnail

updated 9 years ago

gettok: a pedestrian matlab constructs decoder by us

a decoder/tokenizer for MATLAB constructs (structures, cell arrays, syntax)

stokdemo

[out1,out2,out3]=gettok(s,varargin)

o=stok(ivar)

image thumbnail

updated 9 years ago

Coordinate-Element Number Conversion by Aman Siddiqi

Converts row, column, dimension to element number & vice versa (structures, cell arrays, coordinate)

matrixnumber=coordinate2element_num(matrix,row, col, plan...

matrixnumber=element_num2coordinate(matrix,number);

image thumbnail

updated almost 10 years ago

Convert Number Bases by Bob Kagy

Convert from any numerical base and encoding to any other, even for large numbers. (convert, number, base)

image thumbnail

updated almost 10 years ago

StringIsNumber by Michael Robbins

STRINGISNUMBER returns 1 if the input string contains only a number and otherwise a zero. (strings, string, number)

image thumbnail

updated 10 years ago

fromcfrac.m by David Terr

Returns the number with the given continued fraction expansion. (symbolic math, contined fraction, number)

image thumbnail

updated 10 years ago

roundcfrac.m by David Terr

Computes the "round continued fraction" of a given complex number. (continued fraction, round, complex)

image thumbnail

updated almost 13 years ago

nconsecutive by Brett Shoelson

Returns a vector containing the maximum number of consecutive integers in each row of matrix x. (consecutive, vector, max)

nconsecutive(x)

Contact us