필터 지우기
필터 지우기

Storing variables from workspace of a function

조회 수: 1 (최근 30일)
Faiza Gul
Faiza Gul 2022년 5월 16일
댓글: Image Analyst 2022년 5월 16일
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