Exporting Structures Containing syms
Mostrar comentarios más antiguos
How do I export the following fields with its corresponding values to a text or Excel file? I don't want to export each field manually since I am going to deal with larger structures later.

Note: all the values are numbers, but some of them are negative.
Thanks for helping!
Respuesta aceptada
Más respuestas (1)
Erik Huuki
el 9 de Sept. de 2021
Editada: Erik Huuki
el 9 de Sept. de 2021
Once you have a workspace you can save it as a mat file for later. Simply right click in the workspace and there should be an option for saving the workspace. Or you could put them all in a cell array as shown below and write to an xlsx file.
syms a b c
example = [string(a),string(b),string(c)];
writematrix(example,'example.xlsx')
1 comentario
Mike
el 9 de Sept. de 2021
Categorías
Más información sobre Conversion Between Symbolic and Numeric en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!