title: Last element of an multidimensional matrix
body: <p>I have a multidimensional matrix and want to set the last element to 1.(e.g. <code>w[1,1,1,1,1]= 1)</code> The dimension varies, so thats my problem. <code>po[-1]=1</code> doesn't work here.</p>