how to pass data from a text in a gui1 to a table cell in gui2

5 ビュー (過去 30 日間)
imene. B
imene. B 2016 年 7 月 17 日
回答済み: Image Analyst 2016 年 7 月 17 日
i have a two Guis, gui1 and gui2, in gui2 i have a table, well i want to call a value from an editable text in gui1 to a cell in the table of gui2, i read lots of answers but still can't figure it out, Thank you

採用された回答

imene. B
imene. B 2016 年 7 月 17 日
i found no way but to create a push button
and to use this code
i
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
v = evalin('base','your var name')
set(handles.text1,'String',v);
after executing it, the pushbutton will importe the value or your var to the text box.

その他の回答 (1 件)

Image Analyst
Image Analyst 2016 年 7 月 17 日

カテゴリ

Help Center および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by