How do I preallocate symbolic matrix?
56 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Shawn Miller
am 28 Feb. 2016
Kommentiert: Hernán Moreno
am 7 Jul. 2021
I got the warning of preallocation when I tried to change the size of my 1*n symbolic array (elements are symbolic expressions) every time I added a new element. So I wonder how do I allocate symbolic array like zeros(n) in numeric array? Does zeros(m,n,'sym') or sym(zeros(m,n)) work or whatever really works and would increase speed?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Symbolic Math Toolbox 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!