I have a binary file containing short int data. The following code
sucessfully reads the data in and I am able to access the values in
v_tmp[i], for i=0,..,9, but if I try to create a vector comprised of a
subset of v_tmp elements I run into problems. Any idea?
main()
{
decl fid = fopen("filename", "r");
decl n = 10;
decl v_tmp;
fread(fid,&v_tmp,'c',n);
for(i=0;i<n;i++)
println(v_tmp[i]);
print( dropr(v_tmp,<0,2,4,6,8>) );
}
$
Ox version 3.40 (Linux) (C) J.A. Doornik, 1994-2004
8
0
26
0
12
0
23
0
48
0
<>
|