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 6956959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:56:13+00:00 2026-05-27T14:56:13+00:00

Suppose you have some data that is a tone plus noise. t=0:0.01:10; y=sin(t) +

  • 0

Suppose you have some data that is a tone plus noise.

t=0:0.01:10;
y=sin(t) + rand(1,length(t));

I am trying to knock down the tone peaks in the fft so that doing the ifft will result with just the noise data. My algorithm would be a for loop that loops through each index of the abs(fft) to look for a peak. If there is a peak, I would substitute that peak with a noisy datapoint instead.

Problem is, after the fft is done, in order to visualize the data, normally I would use plot(abs(fft)). However, to do ifft, the imaginary data is also needed. Thus, I’m not sure how exactly I would go about “knocking the peak down” or getting rid of it so that I can use the ifft function. I think I would have to work with the imaginary numbers.

Any suggestions? :X

Thank you for your help.

  • 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-05-27T14:56:14+00:00Added an answer on May 27, 2026 at 2:56 pm

    You will have to work with imaginary numbers, but I don’t see why that’s a problem. You can still look for the peaks using the magnitude (abs) representation, but when you “knock them down” you will put in place another complex value. It’s up to you how you want to determine what this value should be – you could set it to zero, interpolate local frequencies, insert a random number…

    Edit re: your comment:

    Don’t let imaginary numbers confuse you. They’re not really “imaginary” anyway! It’s just that to represent a sine wave at a given frequency, you need two values: magnitude and phase. Magnitude is what you’re used to looking at and it determines how much of a given frequency we have. Phase determines the shift relative to some point (e.g. t = 0), which is also very important. As an example take the FFT to signals (say a sine and a cosine wave) with the same frequency – the magnitudes will look the same, but the phase will be different! If we didn’t have phase, IFFT wouldn’t know whether to give us a sine wave or a cosine wave, or something in between.

    Of course, magnitude and phase are not the same thing as real and imaginary, but there is a simple formula to convert them. Either way we’re using two numbers to represent each frequency.

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

Sidebar

Related Questions

Suppose I have a class that processes some data: class SomeClass { public: void
Suppose we have some data that looks like so R_Id Nm Base Dest Proj
Suppose that in a Haskell program I have some data whose type is something
Suppose I have an object containing some data. How can I see that data
Lets suppose that I have some pages some.web/articles/details/5 some.web/users/info/bob some.web/foo/bar/7 that can call a
Suppose I have some data stored in a container of unique_ptr s: struct MyData
Suppose I have a text file with some data I want to retrieve lost
Suppose I have some data I want to post to a server. You're in
Suppose I have some 8-bit data in the bl register, and I want to
Suppose we have some .xml files containing, amongst other things, MIDI note data. Since

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.