3D indexes - MATLAB Cody - MATLAB Central

Problem 43119. 3D indexes

Difficulty:Rate

Generalisation in 3 dimensions of the Problem 43117. 2D Indexes

Given in input the maximum degree P, the algorithm furnishes a ordered list of 3 dimensional vectors [i,j,k] i,j,k>=0 such that i+j+k<=P-1

P=2
indexes=[0,0,0;1,0,0;0,1,0;0,0,1]
P=3
indexes=[0,0,0;1,0,0;0,1,0;0,0,1;2,0,0;1,1,0; 1,0,1; 0,2,0; 0,1,1;0,0,2]

Solution Stats

40.91% Correct | 59.09% Incorrect
Last Solution submitted on Jul 18, 2023

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Problem Recent Solvers12

Suggested Problems

More from this Author2

Problem Tags

Community Treasure Hunt

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

Start Hunting!
Go to top of page