フィルターのクリア

pass data from gui to another

1 回表示 (過去 30 日間)
zeyneb khalili
zeyneb khalili 2017 年 5 月 13 日
編集済み: zeyneb khalili 2017 年 5 月 14 日
I have two guis gui1 with pushbutton1 and gui2 with uitable1. How to update data of gui1 to uitable1 by clicking on pushbutton1? May you help me pleaase. I'm working with matlab 2009

回答 (2 件)

Jan
Jan 2017 年 5 月 13 日
編集済み: Jan 2017 年 5 月 13 日
This is answered extensively by the comment given above by Stephen.
(@Stephen: Sorry for this parasitic answer. To add anything productive:)
It is recommended and very useful to search in the forum before asking a new question:
  1 件のコメント
Stephen23
Stephen23 2017 年 5 月 13 日
@Jan Simon: no problem! As you can probably see from my other answers and comments, I am also a believer in giving links and showing people how to access information.

サインインしてコメントする。


zeyneb khalili
zeyneb khalili 2017 年 5 月 14 日
When I tried this code in the source GUI:
if true
h = findobj('Tag','GUI2');
gdata = guidata(h);
set(gdata.uitable1,'data',get(handles.uitable9,'data'));
end
I had this error: H must be the handle to a figure or figure descendent.
  2 件のコメント
Image Analyst
Image Analyst 2017 年 5 月 14 日
Wow, who told you to do that??? If you want to transfer the data from table 9 to table 1, get rid of all that and simply do
handles.uitable1.data = handles.uitable9.data;
zeyneb khalili
zeyneb khalili 2017 年 5 月 14 日
編集済み: zeyneb khalili 2017 年 5 月 14 日
uitables are in different guis. gui1 in uitable9. gui2 in uitable1. This code is in pushbutton1_callback in gui1

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by