You are now following this question
- You will see updates in your followed content feed.
- You may receive emails, depending on your communication preferences.
How do I make the GUI executable


Accepted Answer
-
-
Direct link to this answer
https://in.mathworks.com/matlabcentral/answers/679288-how-do-i-make-the-gui-executable#answer_565978
-
-
Direct link to this answer
https://in.mathworks.com/matlabcentral/answers/679288-how-do-i-make-the-gui-executable#answer_565978
92 Comments
- Using the handles structure. You can dynamically add on new members to the handles structure that contain your variables that you want to pass in. Unlike global variables, which expose the variables only where you put the global statement, attaching to the handles structure and passing handles will share all the variables you have attached to the handles structure. This could expose variables to your function that you did not need or want exposed. Since variables passed in to MATLAB functions are "pass by value" and not "pass by reference" if you change any of the variables, you are only changing the local copy. If you change any of the variables attached as members of the handle structure, and you want to retain these changed values in the calling function, you will have to return the handles structure as an output of your function, and accept it in your calling function, or else use the guidata() function. Otherwise changes you make to the handles structure variables are only local and will not survive once the function has returned.
- GUI2.fig
- GUI2.m
- 000000000000_rendered.png
- 000000000001_rendered.png
- 000000000002_rendered.png
- 000000000003_rendered.png
- 000000000004_rendered.png
- 000000000005_rendered.png
- 000000000006_rendered.png
- 000000000007_rendered.png
- 000000000008_rendered.png
- 000000000009_rendered.png
- 000000000010_rendered.png
- 000000000011_rendered.png
- 000000000012_rendered.png
- 000000000013_rendered.png
- 000000000014_rendered.png
- 000000000015_rendered.png
- 000000000016_rendered.png
- 000000000017_rendered.png
- 000000000018_rendered.png
- 000000000019_rendered.png
- 000000000020_rendered.png
- 000000000021_rendered.png
- 000000000022_rendered.png
- 000000000023_rendered.png
- 000000000024_rendered.png
- 000000000025_rendered.png
- 000000000026_rendered.png
- 000000000027_rendered.png
- 000000000028_rendered.png
- 000000000029_rendered.png
- 000000000030_rendered.png
- 000000000031_rendered.png
- 000000000032_rendered.png
- 000000000033_rendered.png
- 000000000034_rendered.png
- 000000000035_rendered.png
- 000000000036_rendered.png
- 000000000037_rendered.png
- 000000000038_rendered.png
- 000000000039_rendered.png
- 000000000040_rendered.png
- 000000000041_rendered.png
- 000000000042_rendered.png
- 000000000043_rendered.png
- 000000000044_rendered.png
- 000000000045_rendered.png
- 000000000046_rendered.png
- 000000000047_rendered.png
- 000000000048_rendered.png
- 000000000049_rendered.png
- 000000000050_rendered.png
- 000000000051_rendered.png
- 000000000052_rendered.png
- 000000000053_rendered.png
- 000000000054_rendered.png
- 000000000055_rendered.png
- 000000000056_rendered.png
- 000000000057_rendered.png
- 000000000058_rendered.png
- 000000000059_rendered.png
- 000000000060_rendered.png
- 000000000061_rendered.png
- 000000000062_rendered.png
- 000000000063_rendered.png
- 000000000064_rendered.png
- 000000000065_rendered.png
- 000000000066_rendered.png
- 000000000067_rendered.png
- 000000000068_rendered.png
- 000000000069_rendered.png
- 000000000070_rendered.png
- 000000000071_rendered.png
- 000000000072_rendered.png
- 000000000073_rendered.png
- 000000000074_rendered.png
- 000000000075_rendered.png
- 000000000076_rendered.png
- 000000000077_rendered.png
- 000000000078_rendered.png
- 000000000079_rendered.png
- 000000000080_rendered.png
- 000000000081_rendered.png
- 000000000082_rendered.png
- 000000000083_rendered.png
- 000000000084_rendered.png
- 000000000085_rendered.png
- 000000000086_rendered.png
- 000000000087_rendered.png
- 000000000088_rendered.png
- 000000000089_rendered.png
- 000000000090_rendered.png
- 000000000091_rendered.png
- 000000000092_rendered.png
- 000000000093_rendered.png
- 000000000094_rendered.png
- 000000000095_rendered.png
- 000000000096_rendered.png
- 000000000097_rendered.png
- 000000000098_rendered.png


- activate your axes as the place to plot to
- plot the current data
- set the text field to reflect string() of the result that was just predicted for this file
- pause() to give time for the plot to show up

More Answers (0)
See Also
Categories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!An Error Occurred
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)













