bugGNU Octave - Bugs: bug #38303, package signal : Not able to get...


bug #38303: package signal : Not able to get the matlab equivalent output from tfestimate function (transfer function estimate)

Submitted by:  sarbjit <sarbjit>
Submitted on:  Mon Feb 11 03:46:02 2013  
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: FixedAssigned to: None
Originator Name: sarbjitOpen/Closed: Closed
Release: 3.6.2Operating System: Any

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Sun Mar 17 23:03:07 2013, comment #1:

I fixed the help text for the tfestimate function. The arguments have been compatible with Matlab but the help text was out of date.


The next signal package release will contain this fix.

Mike Miller <mtmiller>
Project Administrator
Mon Feb 11 03:46:02 2013, original submission:


I am having a program which is written in Matlab. When I am trying to run that program in Octave, I am not getting the results as seen in Matlab.

Syntax for tfestimate in Matlab is :

Syntax for tfestimate in Ocatve is :

As you can see the order of parameters in Octave are different from that of Matlab. But I am not able to get the expected results from Ocatve even with modifying the order in the code in the Octave.

Snippet from the Matlab code :
[txy W]=tfestimate(x,y,10,[],[]);

So as per Matlab documentation (http://www.mathworks.in/help/signal/ref/tfestimate.html), third argument is window function (which is specified as value of 10), fourth and fifth argument are noverlap and nfft.

I am not able to modify the code as per the octave specification. Appreciate if some one would help me to get the expected results.

I am uploading the .mat files for variable vectors (x and y) generated from Matlab. This file can be loaded as :
load -mat-binary x.mat
load -mat-binary y.mat
[txy W]=tfestimate(x,y,10,[],[]); %MATLAB version

If you plot this in Matlab, curve will be varying while in Octave it will be a straight line. (Uploading the outputs as well).

Thanks in advance for help


sarbjit <sarbjit>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #27441:  data.zip added by sarbjit (49kB - application/zip)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by sarbjit (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Mar 17 23:03:07 2013mtmillerStatusNone=>Fixed
    Mon Feb 11 03:46:02 2013sarbjitAttached File-=>Added data.zip, #27441

    Back to the top

    Powered by Savane 3.1-cleanup