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… read more >>
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… read more >>
Very often the process of coding in MATLAB is to start from a requirement, like “implement this formula”, to a script that is easily tested to a function that is more general and adds to… read more >>
Just a little trick that helps you get MATLAB figures easily into other programs by copying them to the clipboard. Could easily be made into a shortcut on the MATLAB toolbar. if… read more >>
I recently had a situation where I needed to delete an entry from a cell array. When I tried A{3} = [ ], I did not delete the third element, I actual just set it to [ ]. What Loren… read more >>
I recently received an email asking me a question about how to create an array that is composed of different outputs from functions. The user was new to MATLAB, but had a background in programming… read more >>
I had a well formed question from an advanced MATLAB user recently. He wanted to have an output come back from a GUI. There is an example of this with the modal dialog example in GUIDE. However, it… read more >>
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… read more >>
This short video makes a 2d histogram as an alternative to plotting data points and visually estimating where the most data is. if (typeof(playerLoaded) === ‘undefined’) {var playerLoaded =… read more >>
Very often MATLAB user will write in and we figure out that they are trying to reinvent a dialog that already exists. I quickly go through and show the most useful dialogs in MATLAB. if… read more >>
This short video shows how a switchyard of if/elseif statements was converted to a simple formula. Testing of this refactoring was also done. if (typeof(playerLoaded) === ‘undefined’) {var… read more >>