[Scilab-users] how to respond the shrinkage of hyper-matrix

Samuel Gougeon sgougeon at free.fr
Wed Jun 24 10:27:36 CEST 2015


Le 24/06/2015 05:45, fujimoto2005 a écrit :
> Thanks for reply.
>
> Let me take another example.
> The following script fails because x is made as a 1×2×3 hyper matrix and I
> can't use 4th and 5th indexes.
> In my actual code, the number of 4th and 5th dimensions are variable and I
> cant't know in advance.
>
> x=zeros(1,2,3,1,1);
> disp(size(x))
> a=x(1,1,1,1,1)
It is a known behavior, reported for instance here for Scilab 5.5 : 
http://bugzilla.scilab.org/13237
It is fixed in Scilab 6 (so-called YaSp).

Regards




More information about the users mailing list