How to convert a sym array into a string array?
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
quoroy
el 23 de Jul. de 2017
Comentada: Walter Roberson
el 2 de Jun. de 2021
I have very long arrays of symbolic variables which I need to convert to cell arrays of strings: For example, turning this:
syms x y u
q = [x y u]
into this:
qs = {'x' 'y' 'u'}
something like num2string() but with syms? I'd appreciate any help, thanks.
0 comentarios
Respuesta aceptada
Walter Roberson
el 23 de Jul. de 2017
qc = arrayfun(@char, q, 'uniform', 0);
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
