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… 더 읽어보기 >>
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… 더 읽어보기 >>
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… 더 읽어보기 >>
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… 더 읽어보기 >>
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… 더 읽어보기 >>
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… 더 읽어보기 >>
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… 더 읽어보기 >>
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… 더 읽어보기 >>
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… 더 읽어보기 >>
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); … 더 읽어보기 >>
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… 더 읽어보기 >>