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

Learn moreOpportunities for recent engineering grads.

Apply TodayReturn a matrix of numbers of dimension K by N, where K = prod(v), and N=length(v). The rows count from a vector of ones up to v, where the nth element of a row can take on the values 1:v(n).

42 correct solutions
31 incorrect solutions

Last solution submitted on Jun 23, 2014

1 player likes this problem

1 Comment

Alfonso Nieto-Castanon
on 19 Feb 2012

try count_to_v([2,2])...

2 Comments