[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Want to know how to inluce octave fft lib in my Qt program
From: |
c. |
Subject: |
Re: Want to know how to inluce octave fft lib in my Qt program |
Date: |
Thu, 24 Oct 2013 11:34:27 +0200 |
On 24 Oct 2013, at 11:05, Prasanth N P <address@hidden> wrote:
>
> for (ucI=0; ucI< 1024; ucI++)
> fscanf(fp, "%d\n", input_vector.fortran_vec () + ucI);
>
> for (ucI=0; ucI< 1024; ucI++)
> printf("%d\n",output_vector.fortran_vec () [ucI]);
This is not related to Octave API, you are reading and writing doubles
formatting
them as integers with "%d":
http://www.cplusplus.com/reference/cstdio/printf/
BTW, why are you using C-style IO rather than C++?
http://www.cplusplus.com/reference/istream/istream/operator%3E%3E/
http://www.cplusplus.com/reference/ostream/ostream/operator%3C%3C/
That is a matter of taste, but I find that iostream is usually much more
convenient ...
c.
- Re: Want to know how to inluce octave fft lib in my Qt program, (continued)
- Message not available
- Re: Want to know how to inluce octave fft lib in my Qt program, Prasanth N P, 2013/10/21
- Re: Want to know how to inluce octave fft lib in my Qt program, Prasanth N P, 2013/10/21
- Re: Want to know how to inluce octave fft lib in my Qt program, c., 2013/10/21
- Re: Want to know how to inluce octave fft lib in my Qt program, Prasanth N P, 2013/10/21
- Re: Want to know how to inluce octave fft lib in my Qt program, c., 2013/10/22
- Re: Want to know how to inluce octave fft lib in my Qt program, Prasanth N P, 2013/10/22
- Re: Want to know how to inluce octave fft lib in my Qt program, c., 2013/10/22
- Re: Want to know how to inluce octave fft lib in my Qt program, Prasanth N P, 2013/10/22
- Re: Want to know how to inluce octave fft lib in my Qt program, c., 2013/10/22
- Message not available
- Fwd: Want to know how to inluce octave fft lib in my Qt program, Prasanth N P, 2013/10/24
- Re: Want to know how to inluce octave fft lib in my Qt program,
c. <=
- Re: Want to know how to inluce octave fft lib in my Qt program, Prasanth N P, 2013/10/24
- Re: Want to know how to inluce octave fft lib in my Qt program, c., 2013/10/24
- Re: Want to know how to inluce octave fft lib in my Qt program, Prasanth N P, 2013/10/25
- Re: Want to know how to inluce octave fft lib in my Qt program, Doug Stewart, 2013/10/25
- Message not available
- Re: Want to know how to inluce octave fft lib in my Qt program, Prasanth N P, 2013/10/28
- Re: Want to know how to inluce octave fft lib in my Qt program, Prasanth N P, 2013/10/30