From: Steven Lord on 28 Jun 2010 09:24 "Sreevas " <mailsreevas(a)gmail.com> wrote in message news:i0a4qg$id2$1(a)fred.mathworks.com... >i am jus modelling a system having a resistance and capacitance. Where can >i find the doc freqs? In this newsgroup, when you see someone write: doc <some name> or help <some name> you should type that command at the MATLAB prompt. So type: doc freqs all as one command and then press Enter and the Help Browser will bring up the documentation for the FREQS command. After reading that documentation, you can decide if it does what you want to do and if so, it will show you the syntax to use to call the function. If not, try again using: doc freqz instead. If that too doesn't do what you want, the Help Browser includes search capability, so you can search using appropriate keywords to find the information you want. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com
From: Sreevas on 28 Jun 2010 11:08 "Faraz Afzal" <farazafzal(a)gmail.com> wrote in message <i0a5rp$pf1$1(a)fred.mathworks.com>... > "Sreevas " <mailsreevas(a)gmail.com> wrote in message <i09sfp$qua$1(a)fred.mathworks.com>... > > I am only a second day user of matlab. How can I find the sinusoidal response of a system? I have a low pass filter for which I found the impulse response and step response by step(...) and impulse(...) functions respectively.But what is the way to find the sinusoidal response of the low pass filter? > > > Wow.. It makes me so happy when i See people asking intereting question and then loooking at the power of Matlab turn to it forever.. > > Here is the way to simulate ur response.. > u will use gensig command. > To generate a sine wave of > PERIOD = 3 sec, > DURATION = 10 sec > SAMPLED AT = 0.1 sec > Use this.. > [u,t] = gensig('sin',3,10,0.1) > > Once you achieved it use this to find response.. > lsim(sys,u,t) > > Let me know if it was help.. > > Regards, > Muhammad Faraz Thanks a lot for the info. But how can I apply this to the matrix that I have created. I have 2 x 2 matrix for the low pass filter nd i gave step of (a b c d) to find step response. What sud i do for sinusoidal response?
From: Faraz Afzal on 28 Jun 2010 12:43 "Sreevas " <mailsreevas(a)gmail.com> wrote in message <i0adsu$p4n$1(a)fred.mathworks.com>... > "Faraz Afzal" <farazafzal(a)gmail.com> wrote in message <i0a5rp$pf1$1(a)fred.mathworks.com>... > > "Sreevas " <mailsreevas(a)gmail.com> wrote in message <i09sfp$qua$1(a)fred.mathworks.com>... > > > I am only a second day user of matlab. How can I find the sinusoidal response of a system? I have a low pass filter for which I found the impulse response and step response by step(...) and impulse(...) functions respectively.But what is the way to find the sinusoidal response of the low pass filter? > > > > > > Wow.. It makes me so happy when i See people asking intereting question and then loooking at the power of Matlab turn to it forever.. > > > > Here is the way to simulate ur response.. > > u will use gensig command. > > To generate a sine wave of > > PERIOD = 3 sec, > > DURATION = 10 sec > > SAMPLED AT = 0.1 sec > > Use this.. > > [u,t] = gensig('sin',3,10,0.1) > > > > Once you achieved it use this to find response.. > > lsim(sys,u,t) > > > > Let me know if it was help.. > > > > Regards, > > Muhammad Faraz > > Thanks a lot for the info. But how can I apply this to the matrix that I have created. I have 2 x 2 matrix for the low pass filter nd i gave step of (a b c d) to find step response. What sud i do for sinusoidal response? Ahaan... OK after forming your A, B C matrices .. D = 0 feed through matrix normally... Form a State space of this using.. sys = ss(a,b,c,0); To find step response of thi ssystem you will write step(sys) and for sine wave response I already told u what to do... Let me know if it worked.. Regards Muhammad Faraz
From: Sreevas on 29 Jun 2010 05:32 "Sreevas " <mailsreevas(a)gmail.com> wrote in message <i0adsu$p4n$1(a)fred.mathworks.com>... > "Faraz Afzal" <farazafzal(a)gmail.com> wrote in message <i0a5rp$pf1$1(a)fred.mathworks.com>... > > "Sreevas " <mailsreevas(a)gmail.com> wrote in message <i09sfp$qua$1(a)fred.mathworks.com>... > > > I am only a second day user of matlab. How can I find the sinusoidal response of a system? I have a low pass filter for which I found the impulse response and step response by step(...) and impulse(...) functions respectively.But what is the way to find the sinusoidal response of the low pass filter? > > > > > > Wow.. It makes me so happy when i See people asking intereting question and then loooking at the power of Matlab turn to it forever.. > > > > Here is the way to simulate ur response.. > > u will use gensig command. > > To generate a sine wave of > > PERIOD = 3 sec, > > DURATION = 10 sec > > SAMPLED AT = 0.1 sec > > Use this.. > > [u,t] = gensig('sin',3,10,0.1) > > > > Once you achieved it use this to find response.. > > lsim(sys,u,t) > > > > Let me know if it was help.. > > > > Regards, > > Muhammad Faraz > > Thanks a lot for the info. But how can I apply this to the matrix that I have created. I have 2 x 2 matrix for the low pass filter nd i gave step of (a b c d) to find step response. What sud i do for sinusoidal response Thanks once again. When I tried it out this was the result that i got .What could be the possible solution to this? >> [u.t]=gensig('sin',3,10,0.1) u = t: [101x1 double] >> sys=ss(1,2,3,0) a = x1 x1 1 b = u1 x1 2 c = x1 y1 3 d = u1 y1 0 Continuous-time model. >> z=lsim(sys,u,t) ??? Undefined function or variable 't'.
From: Sreevas on 29 Jun 2010 06:14 "Faraz Afzal" <farazafzal(a)gmail.com> wrote in message <i0ajfe$9a9$1(a)fred.mathworks.com>... > "Sreevas " <mailsreevas(a)gmail.com> wrote in message <i0adsu$p4n$1(a)fred.mathworks.com>... > > "Faraz Afzal" <farazafzal(a)gmail.com> wrote in message <i0a5rp$pf1$1(a)fred.mathworks.com>... > > > "Sreevas " <mailsreevas(a)gmail.com> wrote in message <i09sfp$qua$1(a)fred.mathworks.com>... > > > > I am only a second day user of matlab. How can I find the sinusoidal response of a system? I have a low pass filter for which I found the impulse response and step response by step(...) and impulse(...) functions respectively.But what is the way to find the sinusoidal response of the low pass filter? > > > > > > > > > Wow.. It makes me so happy when i See people asking intereting question and then loooking at the power of Matlab turn to it forever.. > > > > > > Here is the way to simulate ur response.. > > > u will use gensig command. > > > To generate a sine wave of > > > PERIOD = 3 sec, > > > DURATION = 10 sec > > > SAMPLED AT = 0.1 sec > > > Use this.. > > > [u,t] = gensig('sin',3,10,0.1) > > > > > > Once you achieved it use this to find response.. > > > lsim(sys,u,t) > > > > > > Let me know if it was help.. > > > > > > Regards, > > > Muhammad Faraz > > > > Thanks a lot for the info. But how can I apply this to the matrix that I have created. I have 2 x 2 matrix for the low pass filter nd i gave step of (a b c d) to find step response. What sud i do for sinusoidal response? > > Ahaan... > > OK after forming your A, B C matrices .. > D = 0 feed through matrix normally... > Form a State space of this using.. > sys = ss(a,b,c,0); > To find step response of thi ssystem you will write > step(sys) > and for sine wave response I already told u what to do... > > Let me know if it worked.. > Regards > Muhammad Faraz THanks a lot. The last qn i asked was wrond as i had missed a ',' in between.Your help was very useful particularly becoz thaey came really fast :)
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 Prev: vectorizing code Next: separating speech and music in a sound file |