|
From: | Doug Stewart |
Subject: | Re: square waves |
Date: | Fri, 07 Apr 2006 21:12:26 -0500 |
User-agent: | Mozilla Thunderbird 1.0.7 (Windows/20050923) |
NZG wrote:
Is there a function for generating square waves in octave? thx, NZG ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------
If you know how many 1s and zeros you need then you can do it this way: a(100)=0; b(250)=0; b=b+1; c=[a b a b a b a b] or do some for loops ;-) doug Stewart ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------
[Prev in Thread] | Current Thread | [Next in Thread] |