Problem 61049. Create 24-bit image containing all possible colors

A 24-bit image is an image where each pixel is represented by three values, which are the red, green, and blue color components, and where each color component value is represented by an 8-bit unsigned integer in the range [0,255]. In MATLAB, these images are represented by uint8 arrays of size M x N x 3. For example, if A is 100 x 200 x 3, then A(50,70,:) returns the three color component values of the pixel at row 50, column 70.
Your output will be a uint8 array of size M x N x 3 that contains every possible 24-bit color exactly once. M and N are your choice.

Solution Stats

100.0% Correct | 0.0% Incorrect
Last Solution submitted on Oct 24, 2025

Solution Comments

Show comments

Problem Recent Solvers2

Suggested Problems

More from this Author6

Problem Tags

Community Treasure Hunt

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

Start Hunting!