Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Thread Tools Display Modes
Old 30th September 2006, 10:42 AM   (permalink)
Default Anybody know how to input a 20db/octave slope in matlab?

I'm new to using matlab and I was wondering how do make a graph with a -20db/octave slope for modeling filters?

For example, say I want to make a graph where y = 0 until 1000, then i want the graph to have a -20db/octave slope until 100,000.

Anybody know how ot put a function like that into matlab?
FusionITR is offline  
Reply With Quote
Old 1st October 2006, 12:22 AM   (permalink)
Default

Anybody? Could use some help....
FusionITR is offline  
Reply With Quote
Old 1st October 2006, 07:46 PM   (permalink)
Default

Did you mean 20 dB per decade? One R-C filter rolls off at 20 dB per decade or 6 dB per octave. I am not familiar with Matlab, but it should automaticly display in semi-log form.
__________________
see my website: www.geocities.com/russlk
Russlk is offline  
Reply With Quote
Old 1st October 2006, 11:10 PM   (permalink)
Default

Ugh yes I meant decade, not octave sorry.

Yeah, I meant that I wanted to know how to make a slope of 20db/decade without putting in a actual transfer function.
FusionITR is offline  
Reply With Quote
Old 2nd October 2006, 12:54 AM   (permalink)
Default

A simple filter with a series resistor then a capacitor to ground makes a 20dB/decade lowpass filter.
Why sim such a simple filter. You should see its gradual rolloff with your eyes closed.
__________________
Uncle $crooge
audioguru is online now  
Reply With Quote
Old 2nd October 2006, 01:50 AM   (permalink)
Default

"Yeah, I meant that I wanted to know how to make a slope of 20db/decade without putting in a actual transfer function."

Sorry, that does not make sense.
__________________
see my website: www.geocities.com/russlk
Russlk is offline  
Reply With Quote
Old 2nd October 2006, 02:03 AM   (permalink)
Default

Quote:
Originally Posted by Russlk
"Yeah, I meant that I wanted to know how to make a slope of 20db/decade without putting in a actual transfer function."

Sorry, that does not make sense.
This is want I want to do.

Make a semilog plot from 1 to 1MHz. Take a abitary point (say f = 1kHz) and make a slope of -20db/decade unti say f=100kHz then go flat again.

Something like this:



This is in no way a strange question to ask, as there are already matlab gui's that do this such as http://www.mathworks.com/matlabcentr...bjectType=file

I just wanted to know if anybody here knew how to put this into matlab. I am very new to matlab (just got it last week) and have no idea how to do this.
FusionITR is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Using Oscilloscopes mechie Electronic Theory 9 29th November 2007 09:48 PM
uuffff how doess this stupid ting work lol cyprio7 General Electronics Chat 7 9th October 2005 06:55 PM
Way to charge a capacitor linear over time e-l-e-c-t-r-o General Electronics Chat 54 30th September 2005 01:32 PM
Measure DC offset, Hum, DBs gain, Oscillation walters General Electronics Chat 21 7th June 2005 03:00 AM
convert input resistance to different output, but how?! pcoghlan Electronic Projects Design/Ideas/Reviews 7 9th July 2004 09:59 PM



All times are GMT. The time now is 09:20 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.