Doug's MATLAB Video Tutorials

Results for: Topic: Practical example

Generalizing the access to an array of structures in MATLAB 2

Posted by Doug Hull,

Generalizing the access to an array of structures in MATLAB 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,

Using logical indexing to plot points meeting a specific criteria only. 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 more details) >>... read more >>

Sudoku solver in MATLAB by webcam 2

Posted by Doug Hull,

Sudoku solver in MATLAB by webcam From our Japan office via Steve’s blog: This just tickles my fancy, and I think everyone should watch it. ... read more >>

Graphics challenge 10

Posted by Doug Hull,

Graphics challenge 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. ... read more >>

Code review: finding the closest point on a surface

Posted by Doug Hull,

Code review: finding the closest point on a surface 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. ... read more >>

Set up: Finding closest point on a surface 3

Posted by Doug Hull,

Set up: Finding closest point on a surface 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. ... read more >>

Advanced: Speeding up an enumerated string search in a data mining application 3

Posted by Doug Hull,

Advanced: Speeding up an enumerated string search in a data mining application 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 data 9

Posted by Doug Hull,

Integrating to find the volume underneath a set of nonuniformly spaced data 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 clarity 14

Posted by Doug Hull,

Basics: Code review- the thought process in rewriting code for clarity 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 MATLAB 1

Posted by Doug Hull,

Modeling your Mom’s head with MATLAB 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 >>

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