Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8435299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:52:37+00:00 2026-06-10T06:52:37+00:00

Here is a file: http://www.ee.columbia.edu/~dpwe/e6820/matlab/stft.m and the lines: else win = w; w =

  • 0

Here is a file:
http://www.ee.columbia.edu/~dpwe/e6820/matlab/stft.m

and the lines:

else
  win = w;
  w = length(w);
end

Why w has assigned length(w) if w is not used anymore in code?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T06:52:39+00:00Added an answer on June 10, 2026 at 6:52 am

    The third input to stft.m can either be a scalar containing the window size, or the window itself. Internally, the window is represented as win, the window size as w.

    Consequently, if the window itself has been passed to the function, win can be read directly from the input, and w has to be replaced by its length in order to be consistent.

    Replacing w by its length is not necessary, since w is no longer used in the code. However, it facilitates debugging, because variables are assigned consistent values, and it facilitates extension of the code, if, in the future, the algorithm is improved in a way that involves the window size w.

    In short: the line is currently not needed, but improves maintainability of the code in the long run.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

File: /home/USER/DIR/a http://www.here.is.a.hyper.link.net/ /home/USER/DIR/b http://www.here.is.another.hyper.link.net/ Need to remove all the odd lines in this
I'm using the jQuery multi-file upload plugin found here: http://www.fyneworks.com/jquery/multiple-file-upload/ I don't see in
The website is located: http://www.imvu-e.com/products/sro/ the css file here: http://www.imvu-e.com/files/style.css I like where the
I am looking at the code for the font file here: http://www.openobject.org/opensourceurbanism/Bike_POV_Beta_4 The code
I have a CSV File here: http://www.filedropper.com/excel which looks like this http://pastebin.com/ammzv4FK . What
I have a JavaScript file here http://www.problemio.com/js/problemio.js and I am trying to place some
Here is the test file: http://www.nicoeinsidler.bplaced.net/test/mail_test.html If there are no pictures everything works fine
FLV format specification is here: http://www.adobe.com/content/dam/Adobe/en/devnet/flv/pdfs/video_file_format_spec_v10.pdf 1) FLV body consists of tags 2) Each
I downloaded the swc file from here: http://developer.yahoo.com/maps/flash/flexGettingStarted.html And put it in my flex
Related: see here I've got this command: exec((wget -O http://domain/file.zip && mysql -u user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.