Cody

Problem 43119. 3D indexes

Created by Luca Fenzi in Community

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

81.25% Correct | 18.75% Incorrect
Last solution submitted on Nov 10, 2018

Recent Solvers8

Suggested Problems

More from this Author2

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!