MATLAB: Converting sym to string without ‘matrix….’ before

MATLABstringssymbolicSymbolic Math Toolbox

Hi,
I need some help to convert a symbolic array to string.
I tried with:
syms a b c
Array = [a b c];
string = char(Array);
but it returns
matrix([[a b c]]);
Is there a way to take only the string inside ? I need set it to take '[a b c]' as string.
Thanks

Best Answer

Can you tell us the use case here, you just want to display it as a string?
One thing you can do is
syms a b c
Array = [a b c];
array_string = char(Array);
array_string([1:8, end-1:end]) = [];
Related Question