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