Re: [Scilab-users] declaration of uint8 matrix

2013-03-13 Thread sgougeon
Hello Stéphane, De: Stéphane Mottelet stephane.motte...@utc.fr Is it possible to declare a uint8 matrix without first declaring it as a double ? ../.. Yes, you can do: --ui = resize_matrix(uint8(0),5,3) ui = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 --typeof(ui) ans

Re: [Scilab-users] declaration of uint8 matrix

2013-03-13 Thread Stéphane Mottelet
Le 13/03/13 18:57, sgoug...@free.fr a écrit : Hello Stéphane, De: Stéphane Mottelet stephane.motte...@utc.fr Is it possible to declare a uint8 matrix without first declaring it as a double ? ../.. Yes, you can do: --ui = resize_matrix(uint8(0),5,3) ui = 0 0 0 0 0 0 0 0

Re: [Scilab-users] declaration of uint8 matrix

2013-03-13 Thread sgougeon
../.. Maybe would it be a good idea to extend the syntax of uint8 (and others) like ui=uint8(5,3) ? Yes, such a feature would be useful. IMO it would be better to rather extend zeros(), ones(), and eye() with an optional input parameter typeof (text): zeros(X, uint8) ones(m, n, p, int16) ...