Effacer les filtres
Effacer les filtres

Storing variables from workspace of a function

1 vue (au cours des 30 derniers jours)
Faiza Gul
Faiza Gul le 16 Mai 2022
Commenté : Image Analyst le 16 Mai 2022
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 commentaire
Image Analyst
Image Analyst le 16 Mai 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?

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by