Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab: Converting a vector to syms?

  1. Feb 27, 2009 #1
    Matlab: Converting a vector to syms??

    Hi Guys,

    I have a vector in the following form:
    Z = [2 3]

    I want it to be displayed as (Z-2)*(Z+3). Is there any function in Matlab to do this? I searched help files and don't see any way of achieving this other than a loop.

    Thanks in advance for the help!
  2. jcsd
  3. Feb 27, 2009 #2
    Re: Matlab: Converting a vector to syms??

    I think you have to create your own function for this one. Shouldn't be difficult.
    The polynomial (Z-2)*(Z+3) is not equivalent to the vector [2 3] but to [1 1 -6].

    But who knows. I'm not familier with symbolic computation.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook