How to export data from a GUI to Matlab Workspace?
이전 댓글 표시
Hi all, I have to export data from a GUI to Matlab workspace. Anyone can help me? Thanks.
답변 (4개)
Image Analyst
2012년 9월 6일
1 개 추천
You probably don't need to, or shouldn't need to, but if you insist, you can use the assignin() function. See the help for examples.
Azzi Abdelmalek
2012년 9월 6일
you can insert in each function concerned with x y z data the below code
global x y z
you also must run it before, on Matlab Command
Matt Fig
2012년 9월 6일
In the code of the GUI, when you want to export the variables do:
save guioutput
This will save all of the variables in the local workspace to a file named guioutput.mat.
Then from the command line do:
X = load('guioutput');
Now X is a structure with fieldnames the same as the variable names you saved.
If you need to do something more specific, then ask a more specific question...
카테고리
도움말 센터 및 File Exchange에서 Workspace Variables and MAT Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!