How to define a symbolic vector?

I would like to define a symbolic vector like y = [0 1]*x where x is [x1 ; x2]. So basically y actually equals to x2. Is it possible?

 Respuesta aceptada

Star Strider
Star Strider el 12 de Oct. de 2014
Yes!
syms x1 x2
x = [x1; x2]
y = [0 1]*x
produces:
y =
x2

Más respuestas (0)

Categorías

Más información sobre Symbolic Math Toolbox en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 12 de Oct. de 2014

Respondida:

el 12 de Oct. de 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by