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

2015-06-24 Thread Samuel Gougeon
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.

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

2015-06-24 Thread sgougeon
I suppose 'Yasp' is one which is in the following address. https://www.scilab.org/development/nightly_builds/yasp Am I right Yes you are and can I install Yasp in the same PC where Scilab 5.5.2 has been already installed? Yes, you may have as many Scilab versions as needed on the same

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

2015-06-24 Thread fujimoto2005
Hi,Samuel GOUGEON Thanks for reply. I suppose 'Yasp' is one which is in the following address. https://www.scilab.org/development/nightly_builds/yasp Am I right and can I install Yasp in the same PC where Scilab 5.5.2 has been already installed? Best Regards -- View this message in

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

2015-06-22 Thread Pierre-Aimé Agnel
Hi, I don't think there is a problem (on my 5.5.2 version) : function hm_display(m,n,l) a = rand(m, n, l); for i = 1:m for j = 1:n for k = 1:l mprintf(value of index [%d, %d, %d] = %f \n, i, j, k, a(i, j, k)) end

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

2015-06-22 Thread fujimoto2005
Let x=zeros(m,n,l) if m==1, x is generated as 2 dimension matrix, not 3 dim hyper-matrix. In that case the specification of elemnt like x(i,j,k) fails. But the value of m is unknown in advance. Is there any code which I can deal with such a case in general way? I don't like such as if m==1 then …