Simulink: implementing a custom transfer function

Let's say I implement this m-file:

Fq=tf(0.5^2,[1 2*0.7*0.5 0.5^2]);
G=tf(0.006*[200 1],[80 1 0]);
Q=Fq/G;

open Inner_Loop.mdl

Inside Inner_loop.mdl, if I want to implement/model a transfer function block using G, how can it be achieved easily? In other words, how can I retrieve the numerator and denominator of a tf easily?

Thanks in advance.

Answers


It's done by calling tfdata() function, for numerator data of let's say num, num{1} needs to be specified in the data fields of the transfer function block in the Simulink model.


Need Your Help

Modifying SMBIOS from inside Windows

c windows bios

Google has failed me on this one (or I have failed to properly use Google). I have a situation where I'd like to modify some key attributes of the SMBIOS data (like the hardware manufacturer or ass...

ggplot's geom_text() labelling of pie chart hides the pie made by geom_bar()

r ggplot2 label

I constructed the following data using the aggregate(,,FUN =sum) function: