How do you transfer numeric data between 2 tables in 2 different GUI's?

조회 수: 1 (최근 30일)
Cordelle
Cordelle 2013년 7월 3일
GUI1 has table1 and GUI2 has table2. table2 has editable cells which enable the user to type numeric data in the cells. I would like to be able to send the data entered into the cells in table2 to the 2nd column of table1.
i tried using setappdata(MasterSet,'CellData',table2{:}) to save the values in table2 to MasterSet handles but matlab is telling me that table2{:} is a undefined variable.
table2 is definitely the name of the table in the GUI.
any suggestions or help will be greatly appreciated
Thanks, Cordelle
i created the GUI's using Guide
  댓글 수: 1
Chad Gilbert
Chad Gilbert 2013년 7월 3일
If you have made 2 separate GUIs using GUIDE, then they are both running as functions. By default, they each own variables which are out of each-other's scopes. You may be able to share data between them by making your table data global. But why are you making two separate GUIs, as opposed to one, if they are going to share data in this way?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by