Creating an empty sym variable?
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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
0 Commenti
Risposta accettata
Azzi Abdelmalek
il 15 Feb 2013
x=sym([])
3 Commenti
Azzi Abdelmalek
il 15 Feb 2013
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
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Calculus in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!