Can GUI files share data?
4 ビュー (過去 30 日間)
古いコメントを表示
Hello! I'm making an interface using GUI. It has to read some points and make a plot with it and, if I push a button it should move to another interface (another GUI file) and, using the same data, generate a different plot. My question is, is that possible? Can different files share a point and how do I send this point to the second file?
Sorry if it sound a bit far-fetched
0 件のコメント
回答 (2 件)
Sabarinathan Vadivelu
2013 年 4 月 19 日
Yes, You can do. Declare the variables which you need to plot as global. Then you just call the other file. There you can plot.
Image Analyst
2013 年 4 月 19 日
Please refer to the FAQ for possible methods: http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F
8 件のコメント
Image Analyst
2013 年 4 月 21 日
編集済み: Image Analyst
2013 年 4 月 21 日
Please upload screenshots of both your GUIs to http://snag.gy. Click on your GUI to make it active. Type alt-Printscreen to capture the active window into the clipboard. Then go to snag.gy and type control-v. Repeat for your second GUI, and tell me the urls for both windows.
参考
カテゴリ
Help Center および File Exchange で Introduction to Installation and Licensing についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!