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?

 採用された回答

Star Strider
Star Strider 2014 年 10 月 12 日

0 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSymbolic Math Toolbox についてさらに検索

質問済み:

2014 年 10 月 12 日

回答済み:

2014 年 10 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by