From: Ross Campbell on 12 Aug 2010 06:17 Hi, I am new to simulink so apologies if my question is basic: I am looking to try to implement the transfer function (1+s)/((1+s)^a) with 'a' being a parameter which I can vary during experiments. Is there a way I can implement this that allows 'a' to be set by an input to the system? Many thanks for your help and time, Ross
From: Steve Amphlett on 12 Aug 2010 06:49 "Ross Campbell" <rosshcampbell(a)gmail.com> wrote in message <i40hn4$fjp$1(a)fred.mathworks.com>... > Hi, > I am new to simulink so apologies if my question is basic: > I am looking to try to implement the transfer function (1+s)/((1+s)^a) with 'a' being a parameter which I can vary during experiments. Is there a way I can implement this that allows 'a' to be set by an input to the system? > > Many thanks for your help and time, > Ross How about something like: Numerator coefficient: [1 1] Denominator coefficient: factorial(a)./factorial(0:a)./factorial(a:-1:0) Or something similar, using an expression to modify the number of coefficients based on your "a" value.
From: Steve Amphlett on 12 Aug 2010 06:57 "Steve Amphlett" <Firstname.Lastname(a)Where-I-Work.com> wrote in message <i40jj3$do3$1(a)fred.mathworks.com>... > "Ross Campbell" <rosshcampbell(a)gmail.com> wrote in message <i40hn4$fjp$1(a)fred.mathworks.com>... > > Hi, > > I am new to simulink so apologies if my question is basic: > > I am looking to try to implement the transfer function (1+s)/((1+s)^a) with 'a' being a parameter which I can vary during experiments. Is there a way I can implement this that allows 'a' to be set by an input to the system? > > > > Many thanks for your help and time, > > Ross > > How about something like: > > Numerator coefficient: [1 1] > Denominator coefficient: factorial(a)./factorial(0:a)./factorial(a:-1:0) > > Or something similar, using an expression to modify the number of coefficients based on your "a" value. .... Simplifying: Denominator coefficient: cumprod([1 n:-1:1]./[1 1:n])
|
Pages: 1 Prev: Determine Rise Next: Matlab r2010a student version not launching on snow leopard |