Matlab: Converting a vector to syms?

37
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!
 
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.
 

The Physics Forums Way

We Value Quality
• Topics based on mainstream science
• Proper English grammar and spelling
We Value Civility
• Positive and compassionate attitudes
• Patience while debating
We Value Productivity
• Disciplined to remain on-topic
• Recognition of own weaknesses
• Solo and co-op problem solving
Top