From: <par...@us...> - 2010-08-29 01:23:36
|
Revision: 7596 http://octave.svn.sourceforge.net/octave/?rev=7596&view=rev Author: paramaniac Date: 2010-08-29 01:23:30 +0000 (Sun, 29 Aug 2010) Log Message: ----------- control: clarifications Modified Paths: -------------- trunk/octave-forge/main/control/DESCRIPTION trunk/octave-forge/main/control/inst/gensig.m Modified: trunk/octave-forge/main/control/DESCRIPTION =================================================================== --- trunk/octave-forge/main/control/DESCRIPTION 2010-08-28 10:01:43 UTC (rev 7595) +++ trunk/octave-forge/main/control/DESCRIPTION 2010-08-29 01:23:30 UTC (rev 7596) @@ -3,8 +3,8 @@ Date: 2010-08-25 Author: Lukas Reichlin <luk...@gm...> Maintainer: Lukas Reichlin <luk...@gm...> -Title: Computer Aided Control Systems Design -Description: Object-oriented control tools for GNU Octave +Title: Control Systems +Description: Computer Aided Control Systems Design package for GNU Octave Depends: octave (>= 3.2.3) Autoload: yes License: GPL version 3 or later Modified: trunk/octave-forge/main/control/inst/gensig.m =================================================================== --- trunk/octave-forge/main/control/inst/gensig.m 2010-08-28 10:01:43 UTC (rev 7595) +++ trunk/octave-forge/main/control/inst/gensig.m 2010-08-29 01:23:30 UTC (rev 7596) @@ -74,17 +74,15 @@ t = (0 : tsam : tfinal)'; - sigtype = lower (sigtype); - - switch (sigtype(1:2)) + switch (lower (sigtype(1:2))) case "si" u = sin (2*pi/tau * t); case "co" u = cos (2*pi/tau * t); case "sq" - u = (rem (t, tau) >= tau/2); + u = rem (t, tau) >= tau/2; case "pu" - u = (rem (t, tau) < (1 - 1000*eps) * tsam); + u = rem (t, tau) < (1 - 1000*eps) * tsam; otherwise error ("gensig: invalid signal type"); endswitch This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |