mget and mgeti for reading binary file

Ding Zheng Ding.Zheng at reson.com
Tue Feb 1 14:58:16 CET 2011


Hi,

I got a very strange problem when using mget function to read binary file  as below:

nItems = mgeti(1,'ui',fid)
data = mget(nItems,'f',fid)

the error is 999
mget: Wrong type for input argument #1: A integer expected.

I check the result of variable nItems. it is correct. If I set the nItems = 500(a constant number). Then it has no problem.
I tried using int16 or int32 to do conversion of nItems, the problem still is there.

Can every one help me?

Thanks in advance.


Ding zheng

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20110201/8ac11877/attachment.htm>


More information about the users mailing list