# Stuart’s MATLAB VideosWatch and Learn

Posts 31 - 40 of 42

# Review of spiral puzzler

In the recent Puzzler about the spiral, most of the code that was produced went along the following: Create the spiral matrix Find the indices of the ‘1’s in the binary targets… read more >>

# Puzzler: Cleverness needed21

I have been working on a side project and I found I needed the following algorithm:

Given a binary five by five matrix, I need to find the ‘1’ value that is in the position that has the… read more >>

# Puzzler: Working with polynomials11

This puzzler is very straightforward, so I hope to hear from some of the newer MATLAB users. I think the solution is very linear, most people would come up with the same solution. As a hint, be… read more >>

# Puzzler: Find largest connected island26

Every now and then we send MATLAB challenges through the department to help sharpen our programming skills. What amazes me is the sheer variety of solutions that people come up with.
Today, I have a… read more >>

# Puzzler: Overlapping rectangles34

Today’s challenge is one where you need to figure out if two rectangles have a non-zero area of overlap.
The rectangles will be specified as follows:

Just fill in your part of the code until… read more >>

# Puzzler: Data exploration16

This is a puzzler without explanation. Brett got it in about five minutes, some of the other folks wandering near my office got it in just under 20.
The data to explore.
Remember to use the… read more >>

# Puzzler: Six card poker22

Update: This solution was found faster than expected. I have replaced the original with a stronger solution that I was holding in reserve. Congrats to DanK for solving the original ( found here… read more >>

# Puzzler: Difficult algorithm development challenge10

This week’s puzzler is significantly harder than others we have done in the past, I would be surprised (and delighted) to see an answer before I go home tonight… The challenge is shown… read more >>

# MATLAB Puzzler: Finding the two closest points23

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); … read more >>

# Puzzler: Coin game12

This is a simplified version of the first problem I ever attempted to solve in MATLAB. For my original problem, I was trying to figure out the probability of being on any square in the board game… read more >>

Posts 31 - 40 of 42