Published


Constants
Users have occasionally asked how to create and use constants in MATLAB. Here's one such example. In some...

19 years ago

Thumbnail

Published


M-Lint Settings in R2006b
I love the new possibilities for customizing M-Lint messages I see in the new R2006b release based on my active...

19 years ago

Thumbnail

Published


Commenting Code
My thesis advisor wanted to cheerfully annihilate me one day many years ago when he was working with a program...

19 years ago

Thumbnail

Published


A Glimpse into Floating-Point Accuracy
There are frequent posts on the MATLAB newsgroup as well as lots of questions posed to Technical Support about...

19 years ago

Thumbnail

Published


Handle This!
I recently got a great request from a reader to discuss the various kinds of entities in MATLAB attached to the...

19 years ago

Thumbnail

Published


Essence of Indexing
Indexing into arrays allows you to address portions of the elements of an array and treat this subset as an...

19 years ago

Thumbnail

Published


Processing a Set of Files
There continue to be questions on the MATLAB newsgroup regarding processing a set of files. So, for the...

19 years ago

Thumbnail

Published


Trying to Match Behavior of a New Function to an Existing One
We might want to a write a function that mimics the behavior of another related function, specifically with...

19 years ago

Thumbnail

Published


How for Works
Last week I touched on the difference between using 1:N and [1:N] as the expression in a for statement. I have...

19 years ago

Thumbnail

Published


What Are You Really Measuring?
I had an interesting encounter with a colleague, Bob, last week. We were talking about timing some...

19 years ago

Thumbnail

Published


When is a Numeric Result Not a Number?
Quick answer: when the result is a NaN. Contents NaNs in...

19 years ago

Thumbnail

Published


Inverse Mapping (update)
In a follow up comment to the inverse mapping post, Lucio noted that loopFR could be fully vectorized and he is...

19 years ago

Thumbnail

Published


Cell Arrays and Their Contents
I've written several blog articles so far on structures, and not quite so much on their soulmates, cell arrays. Just...

19 years ago

Thumbnail

Published


Inverse Mapping from Values to Indices
I am aware of frequent customer requests for replacing multiple values in an array. And the result should be...

20 years ago

Thumbnail

Published


Publishing
I thought I'd showcase the publish tool in MATLAB this time around. It's how both Steve Eddins and I produce...

20 years ago

Thumbnail

Published


Structures and Comma-Separated Lists
I have seen an increasing number of questions on structures and extracting information from them in a...

20 years ago

Thumbnail

Published


Programming for Multiple Datatypes
How do you write M-files in MATLAB that you would like to have work correctly whether the inputs are double...

20 years ago

Thumbnail

Published


Fibonacci and filter
Over the years, people have posted many versions of code for calculating Fibonacci numbers. I thought I'd...

20 years ago

Thumbnail

Published


Memory Management for Functions and Variables
People have different ideas about what costs a lot, in terms of memory, in MATLAB. And sometimes people don't...

20 years ago

Thumbnail

Published


Command and Function Syntaxes in MATLAB
There is a fairly constant stream of questions in many MATLAB venues, including the MATLAB newsgroup that boil...

20 years ago

Thumbnail

Published


Two-Dimensional Integration over a General Domain
There have been several requests on the MATLAB newsgroup to calculate the area of a function on a...

20 years ago

Thumbnail

Published


High Performance File I/O
Today I'd like to tell you how you might improve the performance of reading and writing files using MATLAB's low-level file...

20 years ago

Thumbnail

Published


MATLAB Programming Practices
I'm feeling pensive today as I participate in development activities at MathWorks for Release 2006b. We are...

20 years ago

Thumbnail

Published


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...

20 years ago

Thumbnail

Published


Vectorized goto in MATLAB
Customers have long asked for a GOTO statement in MATLAB to allow them to use programming constructs familiar to them from...

20 years ago

Thumbnail

Published


Understanding Persistence
pre.codeinput { background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200); } @media print { ...

20 years ago

Thumbnail

Published


Making Functions Suitable for ND Arrays
pre.codeinput { background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200); } @media print { ...

20 years ago

Thumbnail

Published


M-Lint Live in Editor in R2006a
M-Lint is a tool new in MATLAB version 7 (Release 14) to check code for possible problems and report results. You can use...

20 years ago

Thumbnail

Published


Working with structs
pre.codeinput { background: #F9F7F3; padding: 10px; border: 1px solid rgb(200,200,200); } @media print { ...

20 years ago

Thumbnail

Published


More on expansion: arrayfun
Since there seems to be so much interest in the topic of going beyond scalar expansion, it seems worth talking about yet...

20 years ago

Thumbnail

Load more