octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #38303] package signal : Not able to get the m


From: sarbjit
Subject: [Octave-bug-tracker] [bug #38303] package signal : Not able to get the matlab equivalent output from tfestimate function (transfer function estimate)
Date: Mon, 11 Feb 2013 03:46:04 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0

URL:
  <http://savannah.gnu.org/bugs/?38303>

                 Summary: package signal : Not able to get the matlab
equivalent output from tfestimate function (transfer function estimate) 
                 Project: GNU Octave
            Submitted by: sarbjit
            Submitted on: Mon 11 Feb 2013 03:46:02 AM GMT
                Category: Octave Forge Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Matlab Compatibility
                  Status: None
             Assigned to: None
         Originator Name: sarbjit
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.2
        Operating System: Any

    _______________________________________________________

Details:

Hi,

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 :
[Txy,F]=tfestimate(x,y,window,noverlap,nfft)

Syntax for tfestimate in Ocatve is :
[Pxx,freq]=tfestimate(x,y,Nfft,Fs,window,overlap,range,plot_type,detrend)

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
plot(W,abs(txy))

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




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mon 11 Feb 2013 03:46:02 AM GMT  Name: data.zip  Size: 49kB   By:
sarbjit

<http://savannah.gnu.org/bugs/download.php?file_id=27441>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?38303>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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