Matlab: Converting a vector to syms?

  • Context: MATLAB 
  • Thread starter Thread starter skybox
  • Start date Start date
  • Tags Tags
    Matlab Vector
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 5K views
skybox
Messages
37
Reaction score
0
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!
 
Physics news on Phys.org


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.