<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
Samuel,<br>
<br>
<blockquote type="cite"
cite="mid:c40a5ce1-18e0-8d55-2acf-74d747a2d225@free.fr">
<p>Really?:</p>
<p><tt>--> x = rand(3,4,2);</tt><tt><br>
</tt><tt>--> N= 5;</tt><tt><br>
</tt><tt>--> siz = size(x);</tt><tt><br>
</tt><tt>--> a = repmat(0,[N, siz(2:$)]); // Create array
of 0's whose columns have length N</tt><tt><br>
</tt><tt>--> a(1:siz(1), :) = x</tt><tt><br>
</tt><tt><br>
</tt><font color="#ff6666"><tt>Submatrix incorrectly defined.</tt></font><tt><br>
</tt></p>
</blockquote>
<br>
It worked for size (8,1,3). It shouldn't work either, but somehow it
does... <br>
<br>
<blockquote type="cite"
cite="mid:c40a5ce1-18e0-8d55-2acf-74d747a2d225@free.fr">
<p>Why not using resize_matrix()?</p>
</blockquote>
<br>
Thanks!!!!!<br>
<br>
It is exactjy what I needed, only I was not aware of its existence!<br>
<br>
Regards,<br>
<br>
Federico Miyara<br>
<br>
<br>
<br>
</body>
</html>