I'm trying to create a sparse matrix that has non-numeric elements.
syms a b c;
i = [1 1 2 2];
j = [1 2 1 2];
s = [a b 3 c];
sparse(i,j,s,2,2)
which returns this error:
Undefined function 'sparse' for input arguments of type 'sym'.
Error in Test2 (line 8)
sparse(i,j,s,2,2)