image thumbnail

updated 2 months ago

toHTML - convert Unicode string(s) to HTML by Rody Oldenhuis

Convert a (cell) string to its Unicode representation in HTML. (unicode, html, uicontrol)

toHTML.m

image thumbnail

updated 7 months ago

Capitalize strings using titlecase by Brandon Kuczenski

Capitalize the first letter of each word in a string or cell array of strings (strings, case, title case)

S=capitalize(S,skipset)

image thumbnail

updated 1 year ago

DispA(ll) by Alan Robinson

Enhanced disp that can take any number of arguments (strings, display, disp)

dispa(varargin)

image thumbnail

updated 1 year ago

uneval by David Holl

Uneval performs the inverse operation of eval('expression'). (eval data structures ..., eval, data structures)

uneval(var_name, value, return_cell_array)

image thumbnail

updated 2 years ago

csprintf: Write formatted strings to cells. by Douglas Schwarz

Write text into a cell array of strings. (utility, strings, sprintf)

csprintf(varargin)

image thumbnail

updated 3 years ago

Overload Char by Jon Danisch

Changes default behavior of [], +, - for char types. (overloading, char, horzcat)

ToggleCharOverloading(xstr)

horzcat(varargin)

minus(y,z)

image thumbnail

updated 3 years ago

sort_nat: Natural Order Sort by Douglas Schwarz

Sort strings in natural order. (strings, sort, natural order)

sort_nat(c,mode)

image thumbnail

updated 3 years ago

SHOWCELL & CELL\DISP by Jiro Doke

Displays cell array with long strings in the command window. (structures, cell arrays, display)

disp(arg)

display(arg)

showcell(varargin)

image thumbnail

updated 3 years ago

String to Cells by Cole Stephens

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

str2cells(someString)

image thumbnail

updated almost 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

stringCollapser by Avinash Rude

Collapses a long comma separated string using a counter for repeated sub-strings (string collapse, string manipulation, number string)

strCollapser(str)

image thumbnail

updated 4 years ago

Unescape a JavaScript String by Matthew Simoneau

Manually interprets a JavaScript string, which may contain escape characters. (javascript, strings)

Several Examples Using unescapeJavaScriptString

unescapeJavaScriptString(code)

image thumbnail

updated 4 years ago

String Letter Counter Function by Avinash Rude

This function returns comma separated unique letter counts in an input string, keeping the order. (strings, count strings, letter count)

[strO]=strLetterCounter(strI)

image thumbnail

updated 4 years ago

timetick by Michelle Hirsch

Time formatted tick labels. (strings, time, second)

timetick(ax,precision)

image thumbnail

updated 4 years ago

timestr by Michelle Hirsch

String representation of time in HH:MM:SS.SSSS format. (strings, time, second)

timestr(D,precision)

image thumbnail

updated 4 years ago

teximage.m by Ben Hinkle

Displays a LaTeX string as an image. (specialized, plotting, tex)

out=teximage(s,varargin)

image thumbnail

updated almost 5 years ago

JSON Parser by Joel Feenstra

Parses JSON strings into structures and cells (data import, data export, json)

parse_json(json)

image thumbnail

updated almost 5 years ago

LISTMATCH by Joerg Bretschneider

unique adaptive STRMATCH (strings, match, cellstr)

listmatch(item, list, warn)

image thumbnail

updated 5 years ago

Significant Figures by Teck Por Lim

Workaround for fprintf/sprintf to produce correct output for signficant figures, as fprintf/sprintf (strings, significant figures, workaround)

sigfig(matNum, nSigFig, strPad)

example.m

image thumbnail

updated 5 years ago

Seconds to hours, minutes, seconds by Simon Robinson

Converts a time in seconds to a time in hours, minutes and seconds. (optimization, general, timing)

time_string=secs2hms(time_in_secs)

image thumbnail

updated 5 years ago

Replace strings in text file by Pekka Kumpulainen

REPLACEINFILE replaces characters in ASCII file using PERL (strings, replace string perl)

replaceinfile(str1, str2, infile, outfile)

image thumbnail

updated 5 years ago

wordcomp.m by Aman Siddiqi

Alphabatizes words & returns lowest(first in list) (strings, sort, word order)

answer=wordcomp(word1,word2)

image thumbnail

updated 5 years ago

String Toolkits by Dahua Lin

A set of useful string manipulation functions that MATLAB does not offer (strings, string manipulation, string processing)

strendswith(s, pat)

strgsub(s, re, replacement)

strjoin(terms, delimiter)

image thumbnail

updated 5 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)

[nums, matches]=find_nums(str, flag1, decimal_point, comp...

image thumbnail

updated 5 years ago

Simple String Cleanup Utility by Rob Slazas

Simple utility function that cleans up stray characters and spaces from strings so they can be used (strings, clean, cleanup)

cleanstr(instr)

image thumbnail

updated 6 years ago

str2rgb by Kenneth Eaton

Converts a string representation of a color to an RGB triple (strings, string color colorspe...)

str2rgb(colorString)

image thumbnail

updated 6 years ago

Example - data input GUI by Dawn Sanzi

Enter text into GUI, ouputs text fields as structured array. (gui tools, example, gui)

dataimput(varargin)

image thumbnail

updated 6 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 6 years ago

RegexpHelper by Scott Frasso

GUI Regular Expression Tool (strings, regular expressions, regexp)

regexpHelper()

image thumbnail

updated 6 years ago

int2strn by Phillip M. Feldman

convert integer to string, using either integer or exponential format (strings, convert integer to st...)

int2strn(n, k, p)

image thumbnail

updated 6 years ago

Parse Strings Using Delimiters by Jeff Jackson

These two functions parse a string or cell array of strings based on one or more delimiters. (strings, parse strtok delimite...)

get_cell_tokens(cell_array, delimiter)

get_tokens(string, delimiter)

image thumbnail

updated 6 years ago

C-Style String Comparisons by Rahul Prem Nazeer

Implements C-style string comparison operations (strings, strcmp, strcmpi)

cstrcmp(x, y)

cstrcmpi(x, y)

image thumbnail

updated 6 years ago

Calculation of distance between strings by Eduard Polityko

A function computes Levenshtein and editor distances with use of Vagner-Fisher algorithm. (strings, levenstein distance, editor distance)

[d,A]=strdist(r,b,krk,cas)

Fordist.m

image thumbnail

updated 6 years ago

strrel by Ben Barrowes

Applied relational operators to such as == or < to character arrays or cell arrays of strings accord (strings, string compare compar...)

out=strrel(in1,in2,relop)

image thumbnail

updated 6 years ago

A much improved CHAR2LINE by Ian Howat

Returns a character array or cellstr as a single, delimited string. Useful for building ascii files. (strings, cell, cellstr)

char2line(varargin)

image thumbnail

updated almost 7 years ago

rsplit by Gerald Dalley

Splits a delimited string into a cell array using a regular expression. (strings, string, break)

rsplit(r,s)

image thumbnail

updated almost 7 years ago

STRUCT2STR by Marco Cococcioni

Converts a struct intoa char string and, if needed, display the string. The function allows exportin (strings, struct, char strings)

struct2str(s, disp_str, index_of_fields_to_use, x_ratio, ...

image thumbnail

updated almost 7 years ago

word2num by Aman Siddiqi

Converst 'abc' to 123 (strings, word number conversio...)

newvalue1=word2num(word)

image thumbnail

updated 7 years ago

find pattern in string in reverse order by Tseviet Tchen

search character in string from right-hand end (strings, reverse search patter...)

ipos=instrrev(text, pattern, varargin)

image thumbnail

updated 7 years ago

instrrev/strrevfind by Tseviet Tchen

Find character in string from EOS (right-hand end) (strings, reverse, find)

ipos=instrrev(text, pattern, varargin)

image thumbnail

updated 7 years ago

subvar by Per-Anders Ekstrom

Symbolic variable substitution in expression. (strings, substitute variables ...)

subvar.m

image thumbnail

updated 7 years ago

num2english by Dave Kellow

Converts real numbers to plain english (strings, text numerics english...)

num2english(b,arg)

image thumbnail

updated 7 years ago

num2english by Dave Kellow

Translates digits to english (strings, numerical number word...)

num2english(b,arg)

image thumbnail

updated 7 years ago

num2eng by Federico Forte

Convert number to eng. notation string, with SI prefixes (strings, engineering notation, international system)

str=num2eng(num);

image thumbnail

updated 7 years ago

Isletter2 by Jerome Briot

Enhancement of the built-in function ISLETTER (strings, isletter capital smal...)

isletter2.m

image thumbnail

updated 7 years ago

Equation Check by Siamak Faridani

Equation Validator for Long Equations (strings, pretty, pretty print)

eqcheck(sinp)

image thumbnail

updated 7 years ago

stok - string tokenizer by Michael Yoshpe

Find the addresses of tokens in the strings (strings, string tokens delimet...)

stok(str, delim)

image thumbnail

updated 7 years ago

initialcaps by David Fass

Convert a string to initial caps format (initial capitals on all words). (strings, initial capital, initial capitals)

initialcaps(A,varargin)

image thumbnail

updated 7 years ago

headline by David Fass

Convert a string to "headline" format (initial capitals on key words). (strings, headline, initial capitals)

headline(varargin)

image thumbnail

updated almost 8 years ago

Compact data uncertainty format by Peter Mao

given data and uncertainty, this program reformats the number into parenthetic notation. (strings, parentheses, confidence interval)

format_data(datum, sigma, precision, oformat, tex)

Contact us