Creating an empty sym variable?

7 ビュー (過去 30 日間)
Kevin Bachovchin
Kevin Bachovchin 2013 年 2 月 15 日
Hello,
How I can create an empty 0x0 sym variable? Such as x=[] x={}, expect I want to make x an empyt sym, not an empty double or cell.
Thank you, Kevin

採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 15 日
  3 件のコメント
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 15 日
Even with double
x=[];
y=10
a=y+x % is different from y, it gives []
a=[x y], % gives y
Now with sym
x=sym([])
syms y
a=x+y, % the result is x
a=[x y] % the result is y
Azzi Abdelmalek
Azzi Abdelmalek 2013 年 2 月 15 日
Maybe your are looking for
x=sym('0')

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAssumptions についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by