How can I save a variable from the workspace to use it for another script?
Show older comments
Hi, I want to save this variable for use that (and other one) in a brand new script
1 Comment
Stephen23
on 2 Oct 2021
By far the best approach is to use functions (not scripts) and pass the data as input/output arguments:
Accepted Answer
More Answers (0)
Categories
Find more on Workspace Variables and MAT Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!