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?

 Réponse acceptée

Star Strider
Star Strider le 12 Oct 2014

0 votes

Yes!
syms x1 x2
x = [x1; x2]
y = [0 1]*x
produces:
y =
x2

Plus de réponses (0)

Catégories

En savoir plus sur Symbolic Math Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by