Wasn't sure where to put this - Lowpass Filter in Excel

  • Thread starter Thread starter BiGyElLoWhAt
  • Start date Start date
  • Tags Tags
    Excel Filter
Click For Summary

Discussion Overview

The discussion revolves around implementing a lowpass filter in Excel for a mathematically modeled sawtooth wave. Participants explore how to set up the necessary calculations and functions within Excel to achieve this goal, focusing on both the summation of terms and the application of the lowpass filter.

Discussion Character

  • Homework-related
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant seeks assistance in modeling a sawtooth wave and applying a lowpass filter in Excel, mentioning difficulties with certain functions.
  • Another participant suggests creating a column for "n" and using a formula to sum terms, referencing previous cells for cumulative calculations.
  • A further clarification is made regarding the need for an "x" variable in the summation formula, indicating the correct mathematical expression.
  • One participant shares their method of verifying Fourier Series by plotting the first N terms and provides a formula structure for implementation in Excel.
  • Another participant introduces a first-order lowpass transfer function and suggests writing a finite-difference equation to process the triangular wave, emphasizing the need to specify certain parameters.

Areas of Agreement / Disagreement

Participants present various methods and approaches to modeling the sawtooth wave and applying the lowpass filter, but there is no consensus on the specific implementation details or the exact nature of the lowpass filter to be used.

Contextual Notes

There are unresolved aspects regarding the specific lowpass transfer function and its parameters, as well as the exact formulation of the sawtooth wave in Excel.

BiGyElLoWhAt
Gold Member
Messages
1,637
Reaction score
138
Wasn't sure where to put this -- Lowpass Filter in Excel

Ok I need some excel help, I need to model a sawtooth wave mathematically (done) and then I need to put it through a lowpass filter, but I need to do it in excel. My prof expects an excel spreadsheet, and I have no clue how to put it in there. On wolfram I use plot Ʃ[sin(2*n*pi)/(n*pi)] and that works when I take it out 100 or so terms, but excel doesn't like those kinds of functions.

How can I put it in there?
 
Physics news on Phys.org
You are summing over n right? In excel I would just make one column "n" and number it from 1 to 100 or so. Then the column next too it would be sin(2*n*pi)/(n*p)+"previous cell". Here "n" would be a reference to the cell in the adjacent column and "previous cell" would be the cell above which has the rest of the terms of the sum. Does that seem right?
 
That seems somewhat right, but I need an x in there. It's actually sum sin(2npix)/npi
 
When I was learning Fourier Series, what I would occasionally do to verify my answers was to plot the first N series and see if it looked like what I started with.

To accomplish this what I did is along the first Collum I had 1->N
Then along the first row I put -k->k (the period of the function)
Then just filled in the function information

for you it'd look something like =sin(2*$A1*pi()*A$1)/(2*$A1*pi()))

The $A1 being your N term and the A$1 being your x term, set so as you pull the formula they stay in the right column/row.

Then in row N+1 you sum the collum and plot that

Hope that makes sense :D
 
You haven't specified your lowpass transfer function.

So let's assume it's a 1st order lowpass: 1/(Ts+1) where 1/T = corner radian frequency.

I would write an equivalent finite-difference equation for this function, then pass your triangular wave thru it and get the output. The output can then be plotted by excel's plotting facility.

You need to specify T and you also need to specify the frequency of your triangular input.
 
Last edited:

Similar threads

  • · Replies 2 ·
Replies
2
Views
12K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K