Difference between the Matlab and LabVIEW Hann (Hanning) functions

Hi All,
I'm hoping someone out there can satisfy my curiosity. I have been porting over some code from Matlab to LabVIEW and came accross a difference in the two implementations of the Hann function. Essentially:
LabVIEW has array length = n
http://zone.ni.com/reference/en-XX/help/371361J-01​/lvanls/hanning_window/
Matlab has array length -1 = N.
http://www.mathworks.co.uk/help/signal/ref/hann.ht​ml
(where n= N in the two implementations)
As I'm not very clued up on signal processing I was hoping someone could explain why there is a difference in implementation and why array length was chosen for the LabVIEW implementation. According to wolfram the parameter a is full width at half maximum:
http://mathworld.wolfram.com/HanningFunction.html
http://mathworld.wolfram.com/FullWidthatHalfMaximu​m.html
Is the difference just due to the interpretation of what this value should be?
I've attached a modified version of the window comparison example to illustrate the diference.
Thanks,
Attachments:
Window Comparison from example.vi ‏32 KB

^N wrote:
LabVIEW has array length = n
Matlab has array length -1 = N.
Could part o the confusion be due to the fact that LabVIEW arrays start with index zero and matlab arrays start with index one?
I'll look at your code later...
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • What are the main differences between Signal Express and Labview?

    National Instruments provides a matrix so one can quickly compare the
    various versions of Labview but no comparison of Signal Express with
    Labview. Hence how does Signal Express compare with Labview? What
    are some of the things one can do with Labview one can't do with
    Signal Express?
    Howard

    hrh1818 wrote: Which version of Labview are you referring to? I don't consider the graphical version of Labview to be a full featured programming language. LabWindows/CVI is by a long shot a lot closer to being a full featured programming language than the graphical version of Labview.
    Howard,
    You clearly don't know what you are talking about. There is no "graphical version" of LabVIEW, there is just LabVIEW. Click on the article "Is LabVIEW a general purpose programming language?" written by the Jeff K. for some easy reading from a few years ago. It is all still true (except that object oriented features and recursion have been added in recent versions).
    One of the main points at this years NI-week was the discussion of how processor development is switching more and more to multicore designs  to improve performance because a simple boost in clock frequency is becoming more difficult. Linear, text based code is not well suited to take advantage of multticore design, while the dataflow based LabVIEW programming language automatically scales well to multiple processor cores, without any need to rewrite older code. I would say that only LabVIEW is futureproof in this respect. LabVIEW programmers are not wimps that are simply too stupid to write text based code. LabVIEW is not a toy language for people that don't want to learn a "real" programming language.
    LabVIEW is arguably the best programming language in terms of getting things done! I've never felt limited with LabVIEW and my programs often don't even have anything to do with data acquisition or instrument control. The difference between text based code vs. LabVIEW is like "DOS vs. Windows", "Radio vs. HD television". "Trilobyte vs. Homo sapiens" (sorry Putnam ). Text based code is monochrome, archaic and outdated and its linearity imposes unecessary constraints on the programmer that can only be (partially) overcome by wasting even more time throwing even more code at it.
    Sure, a seasoned text based programmer will initially have problems adapting to LabVIEW, just because you would need to adapt to and embrace the power of dataflow and not try to make a literal translation of the text code to LabVIEW, retaining old habits. If you get stuck, come back and ask here in the forum.
    You were looking for object oriented features and failed. All you need to do is a quick site search. All the information is out there. Just because you cannot find it in the first five sentences of the glossy brochure does not mean it does not exist. Maybe you want to read one of the application notes such as:
    LabVIEW Object-Oriented Programming: The Decisions Behind the Design
    In general, you should avoid judgement until you have all information. Your opinions seem quite biased and superficial and not really based on hard facts.
    Initially you asked about the difference between signal express and LabVIEW.
    hrh1818 wrote:
    > What kind of measurments do you want to do and what kind of requirements do you have?
    > You can also see for yourself and download evaluation version of both.
    No thanks, there has to be a better way to get an answer to my
    question than get involved in a two month study project.
    If you would answer the first question quoted above, we could certainly help you with the decision. Isn't that the main purpose of this thread?
    You can also contact your local LabVIEW Field Engineer to go over your requirements and help you make a decision. They usually know their stuff!
    Message Edited by altenbach on 09-02-2007 11:51 PM
    LabVIEW Champion . Do more with less code and in less time .

  • Are there any functional differences between the trial and the paid version?

    Are there any functional differences between the trial and the paid version for Labview 2009?  Thank you.
    Solved!
    Go to Solution.

    This outlines the limitations of the eval version of Labview: Limitations of the LabVIEW Evaluation Version
    Cheers, 
    Misha

  • What are the major differences between the air and the pro

    what are the major differences between the air and the pro?

    In a nutshell, the Air is a lightened, more compact system than the 13" Pro counterpart. The Air loses some hardware features to accommodate the physical downsizing.
    No FireWire port
    No built-in optical drive
    A lesser performing CPU to retain battery charge life, and adequate cooling.
    No Ethernet port
    No Kensington lock slot
    The Air does have a superior native resolution at 1440 x 900, and a standard SSD that does make up alot of the speed differential, and then some. Of course, the 13" Pro can be optionally configured with an SSD.
    You buy the Air if the physical size an weight savings are demonstrably more important than the features lost.

  • Differences between the 2007 and 2009 160GB Ipod Classic?

    What are the differences between the 2007 and 2009 160GB Ipod Classic?

    The 2009 model is slimmer. Click here for more information.
    (50305)

  • DIFFERENCE BETWEEN THE FULL AND BULK-LOGGED RECOVERY MODEL

    DIFFERENCE  BETWEEN THE  FULL AND BULK-LOGGED  RECOVERY MODEL 

    In bulk logged recovery mode certain bulk operations are minimally logged. In FULL recovery mode these are fully logged. These bulk operations are as mentioned below
    1. SELECT INTO
    2. BULK IMport operations including BULK INSERT and BCP
    3. INSERT INTO SELECT command using the OPENROWSET(BULK) function
    4. Partial updates to columns having large value data type
    5. Using WRITE clause in UPDATE statements
    6. Index operations e.g CREATE INDEX, ALTER INDEX REBUILD , DROP INDEX
    In Bulk Logged Recovery Mode when you execute these operations SQL Server only logs the fact that these operation occured and information about space allocation. The actual change in the data is maintained in the BCM (Bulk
    Changed Map)
    Since the actual changes are not recorded in the log file, the log file size in the reletively less in size but this tradeoff comes with the price of increased backup time. This is so because during the log backup its not just the log being backup, but also
    the extents that are marked by the Bulk Changed Map as changed.
    SQLEnthusiast
    http://sqlsimplified.com/
    Please click the Mark as Answer button if a post solves your problem!

  • What are the functional differences between the iPhone and the iPod Touch, barring of course the differences in service requirements.

    What are the functional differences between the iPhone and the iPod Touch, barring of course the differences in service requirements.

    For one, their form factors are slightly different as the iPhone has a bit more squarish body whereas the iPod Touch has a tapered back to it. 
    The iPhone also has much better front and rear cameras. Exact details as to the difference in megapixels depends on whether or not you talking about the iPhone 4 or 4S.  If you would like to get more details, you can always view
    each models specs on Apple's online store.
    See here for a better explanation.
    http://en.wikipedia.org/wiki/IPod_Touch#Comparison_to_the_iPhone
    I'm sure others will chime in with other things as well.
    B-rock

  • In Oracle Forms What is the difference between the Regions and Blocks ?

    Hi,
    In Oracle Forms What is the difference between the Regions and Blocks ?
    thanks
    siva

    Hi Siva
    in oracle forms Block are entities which represent your data (table, views etc), you can say like EOs and VOs.
    Well I dont know about regions in forms.

  • What are major differences between the T5 and the T5i

    What are the major differences between the T5 and the T5i?

    Hey everyone!
    I just wanted to step in (which is not normal) to say something that most people overlook is that the EOS Rebel T5i has a self-cleaning sensor where the EOS Rebel T5 does NOT; also, the T5i can use an IR Remote (like the RC-6), and the T5 can only use cable releases. These are minor things until you need them! 
    I hope those two little things help!
    Oh, and here is the compare info: CLICK ME

  • What are the biggest differences between the 5C and the 5S?

    What are the biggest differences between the 5C and the 5S?

    I think as soon as the developers discover CoreMotion, all of the apps will migrate to using that so fast it will cause your head to spin.
    I think this will cause the obsolesces of more mobile hardware then anything prior to it. The whining and moaning on these forum is going to be so great.
    Allan

  • What's the difference between the ssd and hd?

    I'm in the process of buying a Mac book pro but wanted to know and understand What's the difference between the ssd and hd?

    DDHeadley wrote:
    What's the difference between the ssd and hd?
    HD = hard drive, several metal platters stacked and data read/written magnetically.
    Pro's - less expensive and higher capacity of storage. Can scrub the drive of unwanted data. Unlimited write capability.
    Con'- bit rot can cause data and operating system to not be as reliable, mechanical moving parts means you can't move the machine while it's on.
    SSD = Solid State Disk, basically memory chips that can store data in a permanent fashion without power (like Random Access Memory needs)
    Pro's - faster read/write speeds in most cases. Shock resistant makes them ideal for portable uses.
    Con's - new technology issues, one cannot securely erase the data on them, unless it's ground into a fine powder. Limited write capability means they will wear out eventually like USB thumb drives do. Wear leveling (TRIM) is used to spread the writes evenly across the drive to maximize it's lifespan.
    If you can respect the machine, take care of it and not move it while it's on, or need to scrub the drive of unwanted data, or need higher capacity of storage without paying a fortune for a very large SSD, then a HD makes a lot of sense.
    It really comes down to your privacy, do you want a machine you cannot delete files off of?
    Do you want to carry around a machine that has all your dirty secrets etched in it for anyone with the right software to uncover?
    A computer is a personal machine, why it's called a Personal Computer. We all do things we sometimes are later ashamed of and want to erase all memory of it.
    Can't do that with a SSD, it knows all and you will be forced to destroy the machine to rid it of the unwanted data.

  • I am currently on the Photoshop and lightroom cc bundle, but for my coarse i need InDesign, if i upgrade to full package ($600) do i get that aswell? is it a dramatic difference between the cc and Cs6? would it be better to invest in it, and can i do a pa

    I am currently on the Photoshop and lightroom cc bundle, but for my coarse i need InDesign, if i upgrade to full package ($600) do i get that aswell? is it a dramatic difference between the cc and Cs6? would it be better to invest in it, and can i do a payment plan?

    The complete CC has indesign included in it.
    Regarding your second question: CC is the advanced version of CS6 with advanced & additional features & functions.
    The payment plan for education will suit you the best since you are studying.
    Please refer to Adobe Creative Cloud for students and teachers | Adobe
    Student software discounts, student eligibility | Adobe
    Regards
    Rajshree

  • What's the difference between the TVSU and TVUR+TI?

    What's the difference between the TVSU and TVUR?
    I got 3 critical, 17 recommand and 23 optional updates, when I use TVSU.
    But I got 2 critical, 17 recommand and 19 optional updates, when I use TVUR combined with ThinInstaller.
    It seens missing 1 critical update and couple optional updates.
    Also, my bluetooth led indicator is off all the time, no matter my bluetooth is on or not.
    Because the led indicator is off when my bluetooth connected and transmited files to other BT device. 
    I am 100% sure the led indicator is off when the bluetooth is on.
    I got this fixed when I use TVSU. It fixed it automatically.
    But now, I can't fix it.
    Thinkpad Z60m - 2529
    Message Edited by licht on 05-14-2009 10:47 AM
    Message Edited by licht on 05-14-2009 10:47 AM

    The difference is TVSU stopped working and TVUR+TI still works.
    T500: Vista 32, 2.8GHz, 4GB RAM, 15.4" 1680x1050, 500GB 7200rpm, ATI Radeon HD3650 + Intel 4500MHD. T42: XP, 1.7GHz, 2GB RAM, 14.1" 1024x768, 250GB PATA, ATI Radeon 7500.

  • Difference between the user_bytes and the bytes of dba_data_files

    What's the difference between the user_bytes and the bytes column of the dba_data_file view?

    Hi,
    >>Bytes : Size Occupied
    No. The size of the datafile. Doesn't matter free or used space.
    >>User Bytes: Size available for Occupying.
    No and Yes. Keep in mind that it shows the total size of the file available for user data since it was creation minus the related metadata information.
    In resume, take a look at below:
    You can see below, that datafile has 1,500 MB of size but it has 1,499.9375 MB available for user data.
    LEGATTI@ORACLE10> select file_id,file_name,bytes,user_bytes from dba_data_files where tablespace_name='USERS2';
       FILE_ID FILE_NAME                                         BYTES USER_BYTES
             7 /u02/oradata/DB01/user02.dbf                 1572864000 1572798464
    LEGATTI@ORACLE10> SELECT Substr(df.tablespace_name,1,20) "Tablespace Name",
      2         Substr(df.file_name,1,40) "File Name",
      3         Round(df.bytes/1024/1024,2) "Size (M)",
      4         df.increment_by "Increment By",
      5         Round(e.used_bytes/1024/1024,2) "Used (M)",
      6         Round(f.free_bytes/1024/1024,2) "Free (M)"
      7  FROM   DBA_DATA_FILES DF,
      8         (SELECT file_id,
      9                 Sum(Decode(bytes,NULL,0,bytes)) used_bytes
    10          FROM dba_extents
    11          GROUP by file_id) E,
    12         (SELECT Max(bytes) free_bytes,
    13                 file_id
    14          FROM dba_free_space
    15          GROUP BY file_id) f
    16  WHERE  e.file_id (+) = df.file_id
    17  AND    df.file_id  = f.file_id (+)
    18  AND    df.file_id = 7
    19  ORDER BY df.tablespace_name,
    20           df.file_name;
    Now, you can see that just 874 MB has been used from 1,499.9375 MB real space available.
    Tablespace Name      File Name                                  Size (M) Increment By   Used (M)   Free (M)
    USERS2               /u02/oradata/DB01/user02.dbf                  1,500            0     874.88     625,05Now, is that clear?
    Cheers
    Legatti

  • What is the difference between the $19 and $29 iphone wall charger

    What is the difference between the $19 and $29 iphone wall charger

    Product Information
    This 2-meter USB 2.0 cable connects your iPhone, iPad, or iPod with Lightning connector to your computer's USB port for syncing and charging or to the Apple USB Power Adapter for convenient charging from a wall outlet. 
    Highlights 
    Reversible design
    What's in the Box? 
    Apple Lightning to USB Cable (2 m)$29
    Product Information
    This USB 2.0 cable connects your iPhone, iPad, or iPod with Lightning connector to your computer's USB port for syncing and charging or to the Apple USB Power Adapter for convenient charging from a wall outlet. 
    Highlights 
    Reversible design
    What's in the Box? 
    Apple Lightning to USB Cable
    $19 

Maybe you are looking for

  • Kindle fire had and video Doyle calls

    Can I place a video call with Doyle on my kindle fire had?

  • Another Grep query

    I have a style that is all small caps for a table of contents.  Part of the text being pulled through is text like c1900.  The "c" of the c1900 looks very silly in small caps, expecially with oldstyle numbers.  I want to try some GREP styling that wi

  • HOw to arrive at this report

    Let 100 materials in a plant have routings.. In the routings ther will be a standard text key.. I want a list o materials with their respective standard value keys.. Can anybody explain me hw..

  • Can't open .exe files

    i can't open exe files. when i try to internet explorer opens as the the default program to try to open it. i know how to change the default, i'm just not sure which program to use. any help would be great. thanks

  • Paralysis - voice control options?

    Hi, Hi, Im hoping to receiving some advice and direction to support a friend. A close friend was involved in a motorbike accident about 3 weeks ago. The positive news is that his recovery is progressing and while he will never have 100% mobility he w