How can i use a cell array in the symbolic variables?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
masoud jiryaei
am 22 Aug. 2019
Beantwortet: masoud jiryaei
am 22 Aug. 2019
How can i use a cell array in the symbolic variables?
I have some variables in a matrix (for example [B]).
I want to put the [B] in a cell array.
Is it possible?
3 Kommentare
Akzeptierte Antwort
madhan ravi
am 22 Aug. 2019
Bearbeitet: madhan ravi
am 22 Aug. 2019
Wanted = num2cell(symvar(B))
edit: After your comment.
>> syms a b c d x y z
>> A = [ a*(x^2) , b*(y^3) ; d*(x^2)*y , c ]
A =
[ a*x^2, b*y^3]
[ d*x^2*y, c]
>> B = repelem({A},3,1)
B =
3×1 cell array
{2×2 sym}
{2×2 sym}
{2×2 sym}
>>
2 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Symbolic Variables, Expressions, Functions, and Preferences finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!