Storing variables from workspace of a function

1 次查看(过去 30 天)
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 个评论
Image Analyst
Image Analyst 2022-5-16
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?

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Whos 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by