[scilab-Users] in16 matrix

ron hron at gmx.de
Thu Mar 26 19:04:37 CET 2009


Thanks Stefan,
but this is not what I want to do. 
y=int16(X)
makes a copy of 'X' and converts to int16. The result is even more used memory.

I figured out in the meantime that I can create int16-matrices using the file read-Function mget:
A=mgeti(10000,'us',fd);
this implicitly creates the vector A with int16 values.
Doing this in a loop using 
A(:,i)=...
does what I want.

The intention was to make nice plots of the data, but as I see in the other responses here this will not always work on integers.
ron


On Thu, 2009-03-26 at 14:30 +0100, Stefan Du Rietz wrote:
> I quote from Scilab help:
> 
>   y=int16(X)
> 
> Regards
> Stefan
> 
> On 2009-03-25 19:59, ron wrote:
> --------------------
> > Hello,
> > I am wondering if it is possible to create an int16 type matrix. This
> > would save stack memory in my application since the matrix is huge.
> > How can I do this?
> > thank you.
> > ron
> 


=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Filtered-With-Copfilter: Version 0.84beta4 (ProxSMTP 1.8)
Copfilter-Virus-Scanned: ClamAV 0.94.2/9170/Thu Mar 26 16:37:38 2009
Copfilter-Virus-Scanned: AVG 7.5.52, engine 442 270.11.29/2024  2009-03-26
Copfilter-Virus-Scanned: F-PROT 6.2.1.4252 - Engine 4.4.4.56 - Virusdatabase 2009-03-26



More information about the users mailing list