File Exchange Pick of the Week

Results for: Practical example

Fit a Sphere!

Posted by Sean de Wolski,

Sean's pick this week is Sphere Fit by Alan Jennings. Fitting a Sphere to Data I recently had some data and wanted to fit a sphere through it... read more >>

Self-Balancing Wheeled Robot

Posted by Jiro Doke,

Jiro's pick this week is Self-Balancing Robot by Yorihisa Yamamoto. This one comes from Tokyo, Japan. I am currently here for a few weeks working with the Application Engineers at the MathWorks Japan office which just opened this July. These engineers have... read more >>

MATLAB Puzzler: Finding the two closest points 29

Posted by Doug Hull,

Here is a new MATLAB Puzzler. Given two vectors representing the X and Y coordinates of some points, find the two closest points in Cartesian space. n = 10; x = rand(1,n); y = rand(1,n); Video Content Video Content Brett and I took very different paths to solving this... read more >>

MATLAB Puzzler: Removing columns and rows from binary matrices 37

Posted by Doug Hull,

I am trying something new this week: the MATLAB Puzzler. Rather than just work one of the Practical Examples directly, I am doing it in two parts. The first I will pose the MATLAB puzzler and say how much code it took me to solve it. This... read more >>

Practical Example: Placing a sampling grid in a polygon part two 2

Posted by Doug Hull,

This is the second video in this series, it shows you how to run a very simplistic optimization. For a simple problem like this one, the algorithm is more than sufficient to find a correct answer to what size edge is needed set the grid spacing such that the... read more >>

Practical Example: Placing a sampling grid in a polygon 4

Posted by Doug Hull,

A while back, I posted a video about how to place points randomly inside of an arbitrary polygon. [Click here] This video prompted a question about how to place points in a more systematic manner. If you are only allowed to change the edge length of an... read more >>

Practical example: Intersecting a circle with a line series 4

Posted by Doug Hull,

As with all the videos in this practical example series, the process of developing code is more important than the particular problem that is being solved. In this video, we will be covering topics that are covered in earlier videos: Nested subfunctions Run configurations FIND Custom plots with... read more >>

Practical Example: Adding callbacks to a plot 10

Posted by Doug Hull,

This eleven minute video shows how you can make plots on two axes such that when one point of a pair is clicked, they both are highlighted. In this video you will see: ... read more >>

Practical Example: Generating points inside a polygon 5

Posted by Doug Hull,

Notice the link at the bottom for a one minute survey that can get you into a drawing for a MATLAB t-shirt! This ten minute video shows how to modify the help example for INPOLYGON to generate a set number of points inside of a random polygon. The... read more >>

Practical Example: Visualizing the density of a data cloud 1

Posted by Doug Hull,

I was working with a MATLAB user that had a large number of data points in the form of x,y,z triples. He was mostly interested in the density of these data points over the range of the data. At first he tried to just do a scatter plot,... read more >>

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