From: Ross Campbell on
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
"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
"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])