Problem 61031. The MATLAB Treasure Hunt – Extract the Hidden Cave’s Coordinates from a Long List of Numbers

After decoding the first clue, you uncover another piece of parchment — a long list of numbers. At first glance, it looks random, but a faint drawing of a cave beside it hints that pairs of numbers represent (x, y) coordinates!
Given a row vector a containing an even number of elements, reshape it into a two-column matrix where each row represents one coordinate pair.
This will reveal the positions leading to the Hidden Cave, your next stop on the map.

Solution Stats

53.85% Correct | 46.15% Incorrect
Last Solution submitted on Oct 24, 2025

Solution Comments

Show comments

Problem Recent Solvers13

Suggested Problems

More from this Author22

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!