Stuart’s MATLAB Videos

Watch and Learn

Posts 31 - 40 of 42

結果: Topic: Puzzler

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… 続きを読む >>

Puzzler: Cleverness needed 21

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… 続きを読む >>

Puzzler: Working with polynomials 11

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… 続きを読む >>

Puzzler: Find largest connected island 26

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… 続きを読む >>

Puzzler: Overlapping rectangles 34

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… 続きを読む >>

Puzzler: Data exploration 16

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… 続きを読む >>

Puzzler: Six card poker 22

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… 続きを読む >>

Puzzler: Difficult algorithm development challenge 10

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… 続きを読む >>

MATLAB Puzzler: Finding the two closest points 23

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); … 続きを読む >>

Puzzler: Coin game 12

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… 続きを読む >>

Posts 31 - 40 of 42