About resize() function

Carlo de Falco carlo.defalco at gmail.com
Fri Oct 24 03:47:48 CDT 2008


On 24/ott/08, at 09:24, José Luis García Pallero wrote:

> Ok, but the fact that some elements are not preserved if the new  
> matrix is samaller is logical. I think that the help of the function  
> is quite confused.

no, the feature is not obvious, for example compare

a = rand(4)
resize(a, 2, 8)

to

reshape(a, 2, 8)

anyway, if you think the documentation can be improved, please send a  
patch
c.





More information about the Help-octave mailing list