Published


Comparing Single-threaded vs. Multithreaded Floating Point Calculations
There continue to be a flurry of queries suggesting that MATLAB has bugs when it comes to certain operations...

16 years ago

Thumbnail

Published


Unique Values Without Rearrangement
In MATLAB, the simplest form of the function unique returns the unique values contained in a numeric vector,...

16 years ago

Thumbnail

Published


Coordinating Zero Removals from Multiple Arrays
I've fielded some questions recently about how to coordinate multiple arrays changing simultaneously. One...

16 years ago

Thumbnail

Published


Empty Arrays with Flow of Control and Logical Operators
After reading last week's post on calculating with empty arrays, one of my colleagues mentioned some other...

16 years ago

Thumbnail

Published


Calculus with Empty Arrays
MATLAB has had empty arrays since before I started using the program. When I started, the only size empty array...

16 years ago

Thumbnail

Published


Dealing with Cells
A customer recently asked me this question at the MATLAB Virtual Conference. Contents ...

16 years ago

Thumbnail

Published


Concatenating structs
From time to time, I get asked or see queries about how to concatenate two struct arrays to merge the fields. ...

16 years ago

Thumbnail

Published


Handling Discrete Data
Discrete data arise in many applications and the data may be numeric, or non-numeric, often referred to as...

16 years ago

Thumbnail

Published


October 14 – Virtual MATLAB Conference
We're having a MATLAB conference on October 14, in the virtual world. There'll be presentations, forums, chats, live...

16 years ago

Thumbnail

Published


Using parfor Loops: Getting Up and Running
Note. NOTE: matlabpool was removed in 2015 and you should replace that with parpool instead. ...

16 years ago

Thumbnail

Published


MATLAB Release 2009b – Best New Feature or ~?
MATLAB R2009b was recently released. My favorite new language feature is the introduction of the ~ notation to...

16 years ago

Thumbnail

Published


Rounding Results
There are frequent questions on the MATLAB newsgroup about rounding results to a certain number of decimal...

16 years ago

Thumbnail

Published


Precision and realmax
I was on a recent email thread at the office regarding realmax, eps, and overflow. Contents ...

16 years ago

Thumbnail

Published


Evens and Odds
There are so many functions in MATLAB that sometimes users think that if they can't find the function they are...

16 years ago

Thumbnail

Published


Math in Poetry, Poetry in Math
You hear a fair amount about the mathematically inclined people who are really into music. You hear less about that...

16 years ago

Thumbnail

Published


Computational Geometry in MATLAB R2009a, Part II
I am pleased to welcome back Damian Sheehy for the sequel to his earlier Computational Geometry post.   Contents What's...

16 years ago

Thumbnail

Published


Computational Geometry in MATLAB R2009a, Part I
I'm pleased to introduce Damian Sheehy as this week's guest blogger. Damian is a geometry developer at The...

16 years ago

Thumbnail

Published


A Brief History of polyval
When I first started working at MathWorks, there were already a few functions in MATLAB for working with...

16 years ago

Thumbnail

Published


Find Largest Positive Value Next to Zero
Recently, Steve wrote a blog discussing code clarity/obscurity in the context of one-line code solutions. ...

16 years ago

Thumbnail

Published


Rooting Around in MATLAB – Part 3
I recently wrote a pair of posts (1 and 2) about finding roots of equations, and how you might use MATLAB to...

16 years ago

Thumbnail

Published


Rooting Around in MATLAB – Part 2
In a recent post, I started a series of posts about finding roots of equations, and how you might use MATLAB to...

16 years ago

Thumbnail

Published


Rooting Around in MATLAB – Part 1
I've been interested in teaching for a long time, including ways to use MATLAB. One concept that students...

16 years ago

Thumbnail

Published


Hold Everything!
Have you ever tried to overlap more than one plot, only to find that you had to fiddle with a few times before...

16 years ago

Thumbnail

Published


From struct to dataset
When I got to work last Friday, I saw an email discussion, on behalf of a customer, trying to find a good way...

17 years ago

Thumbnail

Published


Optional Arguments Using Empty as Placeholder
I recently posted about optional input arguments and how to override default values. Gautam mentioned wanting...

17 years ago

Thumbnail

Published


Nice Way to Set Function Defaults
Last week, I wrote a post on the switch statement in MATLAB. One theme in the comments was about using switch (or not!) for...

17 years ago

Thumbnail

Published


Switching Things Up
If you have ever used a switch statement in MATLAB and also used it in C, you might have noticed that the two...

17 years ago

Thumbnail

Published


Learning MATLAB
Do you learn best by reading, watching, or doing? I do best with a combination of all three for learning...

17 years ago

Thumbnail

Published


Convenient nargout Behavior
Here's a question that was recently posed at MathWorks. I'm trying to invoke a function handle. It...

17 years ago

Thumbnail

Published


Palindrome Numbers
Today I'd like to introduce a guest blogger, Mike Garrity, who is a graphics software developer at The...

17 years ago

Thumbnail

Load more