Create an empty symbolic matrix and predefine the dimension in Matlab? -


i want want string calculation using matlab, , stored value in matrix.

for numerical study, predefined dimensions in matlab using zeros create 4*4 array.

a = zeros(4) 

now want same thing symbolic matrix. zeros didn't work @ time.

i tried copy official tutorial @ page http://www.mathworks.com/help/symbolic/sym.html

a = sym('0' ,4)  % error 

still didn't work.

now have use ugly code this

a = sym('[0 0 0 0; 0 0 0 0; 0 0 0 0; 0 0 0 0]'); 

since use iterations, , dimension of matrix grows every time. method not convenient.

do have ideas? lot!

num = sym(num) converts number or numeric matrix num symbolic form.

a=sym(zeros(4,4)) 

Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -