Design a third order low pass butterworth filter

I want to design a 3rd order butterworth filter with a cutoff frequency 160 rad/s. The input signal is a square wave with magnitude of +-1V. and fundemental frequency of 130 rad/s. I must use butter(N,Wn,'s') command. And i have to find the magnitude and phase spectra of the filter.

10 Comments

What's the question? You want someone to do it all for you? If not be more precise what you are stuck on.
Please read the friendly documentation!
I'm stuck in (ii)
‘I'm stuck in (ii)’
No, you aren’t.
I specifically told you what function to use and how to use it in your other (essentially duplicated) post.
If you don’t want to read the documentation or even the correct Answers to your Questions, I suggest that you drop this course, and all other courses using MATLAB (and that covers all engineering and most other scientific disciplines).
‘Im stuck in (iii) now.’
You need the Spectrum Analyzer in Simscape. I don’t have Simscape, so you’re on your own.
For the MATLAB part, are you familiar with the Fourier transform?
Yes I'm. but not in matlab.
Well, I suppose you could look it up yourself.
Read fft (link) for some necessary enlightenment.
Can i compute it without sampling frequency? all the examples mention it. but its not given in the question
You can compute the Fourier transform without the sampling frequency. The results will not provide you with any information with respect to frequency.

Sign in to comment.

Answers (1)

Read the doc and follow one of the very similar examples. If you are still stuck after that then upload your code and specific question. https://uk.mathworks.com/help/signal/ref/butter.html

Products

Asked:

on 20 Dec 2016

Commented:

on 22 Dec 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!