octave-maintainers
[Top][All Lists]
Advanced

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

conroldemo failed in 2.9.17


From: John W. Eaton
Subject: conroldemo failed in 2.9.17
Date: Sat, 10 Nov 2007 21:20:05 -0500

On 11-Nov-2007, Tatsuro MATSUOKA wrote:

| I have a build octave-2.9.17
| 
| Unfortunately I could not use fast inernet connection and fortunately I have
| octave-2.9.16.tar.bz2 and I downdoaded only octave-2.9.16-2.9.17.patch.bz2
| and used patch. 
| 
| The build seems to be successful the both the cygwin and the mingw.
| However the 'controldemo's for 2.9.17 were failed for both the cygwin and the 
mingw.
| 
| I did not check all controldemo  but the below failed.
| In 2.9.16, both worked well
| 
| Tatsuro
| 
| *********************************
| controldemo
| [ 3] Frequency response function
|  [ 1] Bode analysis (bode)  
|  [ 1] Continuous system bode analysis
| 
| ********
| octave-2.9.17 cygwin
| 
| 
| Example #3, Consider the following state space system sys3=:
| 
| Input(s)
|       1: u_1
| 
| Output(s):
|      1: y_1
| 
| state-space form:
| 
| Invalid call to disp.  Correct usage is:
| 
|  -- Built-in Function:  disp (X)
| 
| 
| Additional help for built-in functions and operators is
| available in the on-line version of the manual.  Use the command
| `doc <topic>' to search the manual index.
| 
| Help and information about Octave is also available on the WWW
| at http://www.octave.org and via the address@hidden
| mailing list.
| 
| error: evaluating if command near line 107, column 3
| error: called from `sysout' in file
| `/opt/octave/octave-2.9.17/share/octave/2.9.17/m/control/system/sysout.m'
| error: evaluating if command near line 55, column 9
| error: evaluating while command near line 45, column 7
| error: evaluating if command near line 43, column 5
| error: evaluating while command near line 35, column 3
| error: called from `frdemo' in file
| `/opt/octave/octave-2.9.17/share/octave/2.9.17/m/control/base/frdemo.m'
| error: evaluating switch command near line 67, column 5
| error: evaluating while command near line 49, column 3
| error: called from `DEMOcontrol' in file
| `/opt/octave/octave-2.9.17/share/octave/2.9.17/m/control/base/DEMOcontrol.m'
| error: called from `controldemo' in file
| `/opt/octave/octave-2.9.17/share/octave/2.9.17/m/control/base/controldemo.m'

Please try the following patch.

Thanks,

jwe


Index: scripts/control/system/sysout.m
===================================================================
RCS file: /cvs/octave/scripts/control/system/sysout.m,v
retrieving revision 1.11
diff -u -u -r1.11 sysout.m
--- scripts/control/system/sysout.m     8 Nov 2007 18:54:10 -0000       1.11
+++ scripts/control/system/sysout.m     11 Nov 2007 02:19:34 -0000
@@ -107,7 +107,7 @@
   if (strcmp(opt, "ss") || strcmp(opt, "all"))
     sys = sysupdate (sys, "ss");
     disp ("state-space form:");
-    disp ("%d continuous states, %d discrete states", nn, nz);
+    printf ("%d continuous states, %d discrete states\n", nn, nz);
     if (nn+nz > 0)
       disp ("State(s):")
       xi = (nn+1):(nn+nz);

reply via email to

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