help-octave
[Top][All Lists]
Advanced

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

RE: invfreqs broken?


From: Schirmacher, Rolf
Subject: RE: invfreqs broken?
Date: Fri, 3 Aug 2007 19:39:21 +0200

Tracing the problem back as indicated gives in invfreq, line 76:

 if nargin < 8, tr = ''; end

and in line 84:

  if tr == 'trace'

The latter check seems to be the one that breaks. Indeed, doing

octave.exe> tr = 'a';
octave.exe> if tr == 'trace'
> disp('successs')
> end
octave.exe> 

does nothing (as expected) and especially do not give errors, but

octave.exe> tr = '';
octave.exe> if tr == 'trace'
> disp('success')
> end
error: mx_el_eq: nonconformant arguments (op1 is 0x0, op2 is 1x5)
error: evaluating binary operator `==' near line 14, column 7
error: if: error evaluating conditional expression
error: evaluating if command near line 14, column 1
octave.exe> 

breaks. It looks like == does not handle empty strings correctly. As I am
not that deep inside octave, perhaps there are some ideas out there?

Thanks,

Rolf


> -----Original Message-----
> From: Schirmacher, Rolf [mailto:address@hidden
> Sent: Friday, August 03, 2007 5:39 PM
> To: 'address@hidden'
> Subject: invfreqs broken?
> 
> 
> 
> Hello,
> 
> I can't get invfreqs to work properly, even when using the 
> example code
> given at
> > help invfreqs
> 
> What I get for the example is:
> 
> octave.exe:17>  B = [1/2 1];
> octave.exe:18>       A = [1 1];
> octave.exe:19>       w = linspace(0,4,128);
> octave.exe:20>       H = freqs(B,A,w);
> octave.exe:21>       [Bh,Ah] = invfreqs(H,w,1,1);
> error: mx_el_eq: nonconformant arguments (op1 is 0x0, op2 is 1x5)
> error: evaluating binary operator `==' near line 84, column 9
> error: if: error evaluating conditional expression
> error: evaluating if command near line 84, column 3
> error: called from `invfreq' in file
> `C:\Programme\Octave\share\octave\packages\signal-1.0.2\invfreq.m'
> error: called from `invfreqs' in file
> `C:\Programme\Octave\share\octave\packages\signal-1.0.2\invfreqs.m'
> 
> I am running the precompiled windows binary of release 2.9.13
> 
> Thanks for any hint,
> 
> schi
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
> 


reply via email to

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