Date: May 10, 2013 7:29 PM
Author: dpb
Subject: Re: changing a 2D array into a 3D array

On 5/10/2013 5:35 PM, Roman Voronov wrote:

...Don't toppost==hard conversation follow makes...

> A = rand(2,4) ;
> N = 3 ;
> B = repmat(A,1,1,N) Error using repmat
> Too many input arguments.

...

Syntax error; repmat uses a vector for the higher-dimensioned forms...

B = repmat(A,[1,1,N])

doc repmat % would have told you...

--