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

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

Return 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).

52 correct solutions
34 incorrect solutions

Last solution submitted on May 01, 2015

1 player likes this problem

1 Comment

Matt Eicholtz
on 17 Jan 2015

Not a great solution, but the test suite needs to be improved.

1 Comment

Alfonso Nieto-Castanon
on 19 Feb 2012

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

2 Comments