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.
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
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
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
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 …