Storing variables from workspace of a function
1 view (last 30 days)
Show older comments
I have a function which is called inside the GUI code. Now I want to store the variable from my main functions so that I don't share the full code.
I have tried putting the breakpoint at the end of the line in main function and then I stored the variables as .mat file. Still its not working.
1 Comment
Image Analyst
on 16 May 2022
After you read this
tell us what you did exactly to save all the variables in the "main function". Explain what "not working" means. That is so vague as to be essentially worthless. Did you get an error message? Could you call load() but none of the variables were there?
Also explain what "share the full code" means. Are you using GUIDE or App Designer? Are you trying to share your program files with someone else so they can run your program themselves? Does your program create variables and you just want to give them the created variables in a .mat file but you don't want to give them the complete program to create the variables themselves?
Answers (0)
See Also
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!