# Generalizing the access to an array of structures in MATLAB2

Posted by Doug Hull,

Recently a MATLAB user asked me how to make it possible to work with an array of structures in such a way that she could filter the array of structures and then combine the remaining fields. Once combined she would run arbitrary processing functions on this combined data. This generalized… read more >>

# Using logical indexing to plot points meeting a specific criteria only.

Posted by Doug Hull,

If you have a vector of coordinate for a set of points, you might want to differentiate those points. To do that a concept called logical indexing will help you pull out a subset of those points easily. Here is a quick example (See the second video for… read more >>

# Sudoku solver in MATLAB by webcam1

Posted by Doug Hull,

From our Japan office via Steve’s blog: This just tickles my fancy, and I think everyone should watch it. … read more >>

# Graphics challenge10

Posted by Doug Hull,

When I teach the MATLAB graphics class for new technical support engineers at MathWorks, I have one major exercise for them to do. This is that exercise. @media (min-width: 992px) { .containing-block { width: 100%; } } This is a good exercise that involved a lot of skills: Lines only… read more >>

# Code review: finding the closest point on a surface

Posted by Doug Hull,

This video shows the implementation of the plan for how to find the closest point on a surface to a given point. This is a numerical approximation that avoids the inevitable complexities of solving the problem exactly with computational geometry techniques. @media (min-width: 992px) { .containing-block { width: 100%; }… read more >>

# Set up: Finding closest point on a surface4

Posted by Doug Hull,

This video sets up the plan for how to find the closest point on a surface to a given point. This is a numerical approximation that avoids the inevitable complexities of solving the problem exactly with computational geometry techniques. @media (min-width: 992px) { .containing-block { width: 100%; } } … read more >>

# Advanced: Speeding up an enumerated string search in a data mining application3

Posted by Doug Hull,

This week, I am going to cover a technique that I used to speed up a data mining application that had a search through enumerated strings looking for all the matches. Using this technique of substituting numeric values for the strings, I was able to see a twenty fold… read more >>

# Integrating to find the volume underneath a set of nonuniformly spaced data13

Posted by Doug Hull,

This video covers the use of GRIDDATA, anonymous functions, and QUAD2D to integrate the volume under a set of randomly spaced data points. First an interpolation scheme must be put in place, then a numeric quadrature function is invoked. This video shows the creation of a good synthetic data set… read more >>

# Basics: Code review- the thought process in rewriting code for clarity14

Posted by Doug Hull,

This short video covers the thought process of rewriting some code for clarity. The six lines of code are lengthened into twice that. The code is much more readable and maintainable. The problem is not as important as the thought process, however, the problem is about reshaping… read more >>

# Modeling your Mom’s head with MATLAB1

Posted by Doug Hull,

I frequent Twitter as MATLABDoug. You can check there for daily MATLAB tips in 140 characters or less, blog post announcements and other things that I find interesting. While reading the stream of Tweets about MATLAB I found this little gem of a tweet: How to convert your… read more >>