From bug-octave-request at che dot utexas dot edu Wed Oct 20 09:38:16 1993 Subject: problem still there... From: "A. Scottedward Hodel" To: bug-octave at che dot utexas dot edu Cc: Bruce dot Tenison at eng dot auburn dot edu Date: Wed, 20 Oct 93 09:38:04 CDT ---------- X-Sun-Data-Type: text X-Sun-Data-Description: text X-Sun-Data-Name: text X-Sun-Content-Lines: 45 John, The m-file below still fails. I include the patch that you originally sent me for your reference... Test case: SparcStation: --------------------------------------------------- scotte at strangelove dot 19% ~/bin/octave Octave, version 0.76. Copyright (C) 1992, 1993, John W. Eaton. This is free software with ABSOLUTELY NO WARRANTY. For details, type `warranty'. octave:1> freq Frequency response example gpoles = -1.00000 - 1.00000i -1.00000 + 1.00000i -0.75000 + 0.00000i npoles = 3 gzeros = 0.50000 - 0.50000i 0.50000 + 0.50000i nzeros = 2 Frequency response range: Enter minimum frequency of plot (rad/s):1 fr_min = 1 Enter maximum frequency of plot (rad/s):100 fr_max = 100 Enter number of points in frequency plot:100 warning: implicit conversion of complex value to real value error: invalid index = 0 error: evaluating assignment expression near line 18, column 8 fr_npts = 100 octave:2> quit The line in question is: 13: for i=1:length(om) 14: 15: gs(i) = 1; 16: for j=1:nzeros 17: gs(i) = gs(i)*(om(i) - gzeros(j)); 18: endfor Scotte ---------- X-Sun-Data-Type: mail-file X-Sun-Data-Name: done.lex.patch X-Sun-Encoding-Info: uuencode X-Sun-Content-Lines: 47 begin 600 done.lex.patch M1G)O;2! 1F5D97 at N37-F8RY dot 87-A+D=O=CIJ=V5 8VAE+G5T97AA"Y-"YL"3$Y.3,O,3 O,3, at ,3@Z-#6U?=&%B(#T]('1O M<%]L979E;%]S>6U?=&%B("8F(&=S