help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't write binary data to the standard output


From: Akira Nishimura
Subject: Re: Can't write binary data to the standard output
Date: Tue, 14 Sep 1999 14:56:41 +0900

From: Akira Nishimura <address@hidden>
Subject: Can't write binary data to the standard output
Date: Tue, 14 Sep 1999 14:49:05 +0900
Message-ID: <address@hidden>

>#!/usr/bin/octave -q
>
>sf=11025;
>t = (1:sf)/sf;
>f = 1000;
>sig = sin(2*pi*f*t);
>fwrite(1, sig, 'int16');
>
>This script outputs nothing

I found my mistake. This script can do nothing.

sig = sin(2*pi*f*t)*32767;

can output correct data.

_/_/_/   _/  _/            _/            _/_/        Akira NISHIMURA
 _/     _/  _/            _/             |    Dept. of Information Systems
_/okyo  _/_/niversity of _/nformation _/_/ciences address@hidden
                   http://www.rsch.tuis.ac.jp/~akira




---------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.  To ensure
that development continues, see www.che.wisc.edu/octave/giftform.html
Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
---------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]