Loren on the Art of MATLAB

Results for: Strings

Learning to Love Regular Expressions 8

Posted by Loren Shure,

Today I’d like to introduce guest blogger Sarah Wait Zaranek who works for the MATLAB Marketing team here at MathWorks. Sarah previously has written about using GPUs in MATLAB. Sarah will be discussing how she got started using regular expressions.... read more >>

How Many Digits to Write? 23

Posted by Loren Shure,

How Many Digits to Write?  Recently, my colleague Rob Comer and I were talking about how to write out a number, in decimal, so that if it were read back into MATLAB, would retain its full precision. The... read more >>

A Way to Automate “Regular” Renaming 17

Posted by Loren Shure,

A Way to Automate “Regular” Renaming  Recently someone at MathWorks asked me how he could automate the renaming of a bunch of M-files containing underscores ('_') in the names with derived names that removed the underscores and used camelCasing instead. You may have similar name manipulation operations... read more >>

Iterating over Non-Numeric Values 25

Posted by Loren Shure,

Iterating over Non-Numeric Values  Recently a colleague was hoping to write some code to iterate over fields in a structure. There are at least three different ways I can think of, some more straight-forward than others.... read more >>

Finding Strings 24

Posted by Loren Shure,

Finding Strings  Over the years, MATLAB has become a friendlier environment for working with character information. MATLAB has a rich set of text handling functions, ranging from the simple, to the all-powerful regexp functionality... read more >>

Command and Function Syntaxes in MATLAB 19

Posted by Loren Shure,

Command and Function Syntaxes in MATLAB  There is a fairly constant stream of questions in many MATLAB venues, including the MATLAB newsgroup that boil down to not understanding the difference between command and function syntaxes in MATLAB. Today I try to set the ... read more >>

MATLAB, Strings, and Regular Expressions 41

Posted by Loren Shure,

MATLAB, Strings, and Regular Expressions  I'm pleased to introduce Jason Breslau, our guest blogger this week, who gives us his take on MATLAB, strings, and regular expressions. When you think about text processing, you probably think about Perl, as well you should. Perl is the... read more >>

These postings are the author's and don't necessarily represent the opinions of MathWorks.