How can I save a variable from the workspace to use it for another script?

57 visualizaciones (últimos 30 días)
Hi, I want to save this variable for use that (and other one) in a brand new script

Respuesta aceptada

DGM
DGM el 2 de Oct. de 2021
You can save variables to a .mat file and then load the .mat file in the other script.
In practice, it's a good idea to load into a struct and explicitly define the incoming variable:

Más respuestas (0)

Categorías

Más información sobre Structures en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by