Simulating transfer functions in MATLAB?

31 次查看(过去 30 天)
Greetings again!
Another feat I am trying to accomplish is to simulate a simple transfer function design given one signal that over samples another. Is there any way to do this is MATLAB? If so, how can this be done, and what information needs to be known before I start?
Thanks!

回答(2 个)

Fangjun Jiang
Fangjun Jiang 2011-9-21
Not sure what is "given one signal that over samples another". Use tf() to define a transfer function, use step() to see the step response. From help tf and help step, you'll find many other functions through "See also".
  4 个评论
Jesse
Jesse 2011-9-21
Let me add to that last comment. Here's what I'm trying to do. I have 2 line plots from a data file on a single figure in MATLAB (Fangjun, we were discussing this yesterday). I'm trying to match one of the lines to the other via a transfer function. Is there a way to do that in MATLAB at all?
Fangjun Jiang
Fangjun Jiang 2011-9-21
No! You can try-and-error, which means you guess a transfer function, plot its output to see if it matches and then you re-fine your guess. But there is no built-in function that can help you. The remotely related topic is the System Identification Toolbox. But that still requires you have a rough idea what the transfer function is like. The toolbox can help you to figure out the coefficients.

请先登录,再进行评论。


Sean
Sean 2011-9-21
Hello Jesse,
Are the lines you are looking at linear? If they are sampled at different intervals/points, you could still do a linear regression to get the equations for each line. Then you could divide the equations to get a linear transfer function.
If they aren't linear, I think you could still do it, but it would be a lot more ornery. :)

Community Treasure Hunt

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

Start Hunting!

Translated by