|
On May 9, 10:50 am, "Amz Obi" <a...@mathworks.com> wrote:
> Hello all,
>
> I'm trying to populate a sylvester matrix, S(a,b) given two polynomial=
s of the form
>
> p(x) = a(1)*x^n + ... + a(n)*x + a(n+1)
> q(x) = b(1)*x^m + ...+ b(m)*x + b(m+1)
>
> in MATLAB however I'm not allowed to use any loops, does anyone have any =
ideas how I can do this without using loops?
> I am allowed to use the toeplitz function though.
>
> Kind regards
> Amz
Use two toeplitz matrics and concatenate them. For example do toeplitz
([0 ... 0 a(1) a(2)... a(n+1)]) and similarly for q. Now partition the
resulting matrices to take out the block you want from each and
concatenate them.
hth
|