image thumbnail

updated 2 months ago

Numeric to English Words by Stephen Cobeldick

Convert a numeric scalar to a string giving the English name of the number value (GB/US). (dialect, words, number names)

num2words(num,opts)

image thumbnail

updated 2 months ago

ISO 8601 Date String to Serial Date Number by Stephen Cobeldick

Convert an ISO 8601 Date String to Serial Date Numbers. Auto-detect or select the timestamp style. (calendar date, date, iso 8601)

datenum8601(Str,Tok)

image thumbnail

updated 3 months ago

Natural-Order Row Sort by Stephen Cobeldick

Natural-order row sort of a cell array of strings, with customizable numeric format. (sort, sortrows, cell array)

natsortrows(X,col,xpr,varargin)

image thumbnail

updated 3 months ago

Natural-Order Filename Sort by Stephen Cobeldick

Natural-order sort of filenames/fullpaths, with customizable numeric format. (sort, natural order, string)

natsortfiles(X,varargin)

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 3 months ago

Prefixed-String Conversion (SI or Binary) by Stephen Cobeldick

Convert between numeric values and SI (or binary) prefixed strings. (data, communications, iso 80000)

binum(str,uni)

bipre(val,sgf,pfx,trz)

sinum(str,uni)

image thumbnail

updated 4 months ago

findInPath.m by Dan K

Tests paths (or any other string) to find if it contains a substring (find, regexp, string)

findInPath(pathStr,expr,caseSensitive)

image thumbnail

updated 5 months ago

str2html by Robert Cumming

Convert str to HTML format strings for use in uimenus and uicontrols (matlab, string, strings)

str2html ( varargin )

test_str2html ( varargin );

image thumbnail

updated 7 months ago

LaTeX table element wrapper by Matthew Arthington

Change the font of certain elements within a LaTeX table string (latex, string)

S=latexWrapTableElements(latexTable,linearIndicesOfElemen...

image thumbnail

updated 8 months ago

Regular expression search in cell array of strings by Maximilien Chaumon

Search in cell array of strings. Returns indexes of cells in stead of indexes within cells . (cell, cellstr, regexp)

regexpcell(c,pat,inv)

image thumbnail

updated 8 months ago

recursive_scriptsearch by Jakob Sievers

Search for strings within multiple scripts (string, search, folder)

dd_out=recursive_scriptsearch(indir,str)

image thumbnail

updated 11 months ago

How To Store a List of Names by Masoud Ghanbari

Simple Tutorial that shows the way to store many of names and strings in MATLAB (list, name, store)

list.m

image thumbnail

updated 12 months ago

How To Convert A User Input String To A Function by Masoud Ghanbari

This tutorial will show how to convert user input string to a function which accepts variable. (string, function, input)

inputconvert.m

image thumbnail

updated 12 months ago

Setting Maximum numer of Characters in edit box by 123456

Shows how to limit the number of characters in an edit field using simple GUI programming. (edit, box, edit box)

limit_text(varargin)

image thumbnail

updated 1 year ago

String comparison by Christian

The function searches for a string inside a given target and returns 1 for found or 0 for not found. (string, compare, search)

strcompare(target,searchterm)

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

String Escape by Alexander Saites

returns a string with special characters "escaped" (string, escape, code generation)

stresc(string)

image thumbnail

updated 1 year ago

Grammatical List by Jonathan Awerbuch

Takes a cell array of strings and returns a single string with commas and "and" per standard grammar (string, list, grammar)

grammaticalList(strs)

image thumbnail

updated 1 year ago

escapeString: convert special characters in a string into their escape sequences by Christian

Escapes special characters (\r, \t, ', ...) in a string and returns the escaped string. (escape, string)

escapeString(str)

image thumbnail

updated 1 year ago

STRJOIN by Kota Yamaguchi

Concatenate an array into a single string. (string, array, cellstr)

strjoin(input, separator)

image thumbnail

updated 1 year ago

MetricPrefixStr - Print SI Prefix Formatted Numbers by Damon Bradley

Prints a SI prefix formatted string corresponding to a numeric vector. (latex, format, string)

MetricPrefixStr(xtickvec)

image thumbnail

updated almost 2 years ago

strjoin by Joao Henriques

Joins cell array into a single string, with delimiter. Small, vectorized and fast. (string, join, str)

strjoin(c, delimiter)

image thumbnail

updated almost 2 years ago

Edit Distance Algorithm by Reza Ahmadzadeh

Edit Distance is a standard Dynamic Programming problem. (mathematics, search, dynamic programming)

EditDistance(string1,string2)

image thumbnail

updated 2 years ago

Random String Utility by Dan Couture

Generate a random string. Specify length and type of characters. (random, string)

random_string(length, type)

image thumbnail

updated 2 years ago

cell2str by Cris Luengo

Convert 2-D cell array into evaluable string (cell array, numeric array, string)

cell2str(c,n,mode)

image thumbnail

updated 2 years ago

Write String Value to Windows Registry by Gordon

A function the writes a string value to a key in the windows registry (windows, registry, regedit)

image thumbnail

updated 2 years ago

Repeated Values by Mike Sheppard

Finds all repeated values for input X, and their attributes. (data exploration, statistics, mathematics)

[RV,NR,POS,IR]=repval(varargin)

image thumbnail

updated 2 years ago

array2string.zip by Bastian Binder

simple function that converts a cell array to a string. (cell array, string, conversion)

string_loc=array2string(array_loc)

image thumbnail

updated 2 years ago

splitstring by Ivar Eskerud Smith

Split a string into a cell array by specifying a delimiter. (split, string, cellstring)

splitstring( str, varargin )

image thumbnail

updated almost 3 years ago

Swap structure values into strings by Zachary Danziger

Finds fields of a structure in a string, and replaces them with the corresponding field values. (structure, string, field)

struct2strrep(strctr,sin)

image thumbnail

updated 3 years ago

Generate Exhaustive Permutations by Michael Chan

Illustrates generation of exhaustive permutation of symbols given the symbolic bases. (bioinformatics, permutation, combinatorics)

computePermutationSeqForSpecificIndex (bases, lengthOfPer...

convertIndexRepresentedPermutationsToSymbolPermutations (...

generateExhaustivePermutation(bases, lengthOfPermutation)

image thumbnail

updated 3 years ago

mat2colon by Javier Lopez-Calderon

Converts a matrix (row x col) into a string using MATLAB colon notation (single resolution). (matrix, string, colon)

mat2colon(Matrix, varargin)

image thumbnail

updated 3 years ago

Vector to colon notation by Javier Lopez-Calderon

Converts a vector into a string with its MATLAB colon notation (single resolution). (single resolution, vector, string)

vect2colon(vec, varargin)

image thumbnail

updated 3 years ago

tf2tex by James Slegers

Creates a Tex string based on a transfer function object (control design, data export, tf)

tf2tex(tran)

image thumbnail

updated almost 4 years ago

FInding several strings in one string. by Fabian Tomaschek

Functions compares input and search multiple items in two modes. (string, find, search)

multistrfind (input, wassuchen, mode)

image thumbnail

updated almost 4 years ago

self-made stroboscope with microphone by Maxim Vedenyov

GUI for the stoboscope. FFT spectrum, detect frequency, generate drive signal. (stroboscope, selfmade, string)

add_to_buffer

piece_processing

stroboscope(varargin)

image thumbnail

updated almost 4 years ago

CStr2String by Jan Simon

Fast concatenation of cell strings to a string as C-Mex (cat, sprintf, cell string)

CStr2String(CStr, Sep, Trail)

uTest_CStr2String(doSpeed)

image thumbnail

updated almost 4 years ago

Burrows-Wheeler Matrix (BWM) Transform by Michael Chan

Illustrates the Burrows-Wheeler Matrix (BWM) Transform. (bioinformatics, string, sort)

BWT (shortGeneStr)

cell2str(c,n,mode)

cell2string( cellString )

image thumbnail

updated almost 4 years ago

String to Cells by Cole Stephens

Split a single string into a cell array. (strings, string, cells)

str2cells(someString)

image thumbnail

updated 4 years ago

File Ordering Patch Utility for MATLAB by Michael Chan

The utility patches the reordering considering the length of the filename during the sorting. (string, utility, directory)

cell2str(c,n,mode)

displayImagesInDirectory(targetFolder, imageFiles, imageF...

listFilesInDirectory( targetFolder, imageFileType )

image thumbnail

updated 4 years ago

Suffix Array by Michael Chan

The objective is to illustrate suffix array computation. This does not include the search operation. (bioinformatics, string, sort)

determineSuffixArray( stringTarget )

usage_determineSuffixArray.m

image thumbnail

updated 4 years ago

Class for character array by Paulo Buchsbaum

Class for easier string manipulation, with many operators and functions overloads. (character array, trimming, padding)

str

image thumbnail

updated 4 years ago

isValidSymbol by Jan Simon

Check for valid variable, field or function name - fast C-Mex (valid, variable name, function name)

isValidSymbol(S)

uTest_isValidSymbol(doSpeed)

image thumbnail

updated 4 years ago

regexpcmp (strcmp meets regexp) by Jason Kaeding

Checks whether strings match a regular expression (pattern) or not. (strcmp, regexp, strmatch)

regexpcmp(str,expr,option)

image thumbnail

updated 4 years ago

DateConvert by Jan Simon

Simple but fast date conversion: 1.3% of DATESTR time, 20% of DATEVEC/ DATENUM time (date, conversion, datenum)

DateConvert(DIn, OutFormat)

TestDateConvert(doSpeed)

image thumbnail

updated 4 years ago

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

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

randorg(n, range, varargin)

seqorg(range, varargin)

strorg(n, len, varargin)

image thumbnail

updated 4 years ago

String2Hash by Dirk-Jan Kroon

Convert a String Array (Text) to a hash code (hash, string, string2hash)

hash=string2hash(str,type)

image thumbnail

updated 4 years ago

Struct String Replace by Ross Hatton

Replace strings in nested structure and cell arrays. (data import, data export, string)

struct_string_replace(data,originalstring,newstring)

image thumbnail

updated 4 years ago

strpat: a pedestrian, exactly matching pattern finder / replacer by us

STRPAT finds and replaces an exactly matching pattern in a character or numeric string (strings, string, numeric)

[nvec,sout]=strpat(str,pat,npat)

image thumbnail

updated 4 years ago

allwords by John D'Errico

Parse a sentence or any string into distinct "words" (string, char, words)

allwords(str,sepchars)

Contact us