Storing handle values in a text file

Hello
I want to write the handle values being produced in one GUI to a text file. I have written the code for generation of text file in another GUI and hence, want to access the handles and write it in text file. I am not able to get the handle values. These handle values are generated by another function.
Here is an example of what I am doing:
[handles.f1, handles.f2, handles.f3, handles.f4 ,handles.f5, handles.f6] = add (x,y); %in the main GUI
I want to access handles.f1,f2..f6 in another GUI and then write it in text file.

2 件のコメント

Jan
Jan 2013 年 7 月 18 日
The question is not clear. The handles variable is a struct. Unfortunately "handle values" could also mean the handles of the GUI elements. Blame Matlab for the confusing name collision. How do you try to obtain the wanted values from the GUI? What is "add"?
nl2605
nl2605 2013 年 7 月 19 日
By handle values I meant the data like handles.f1 in the line above. add is just any function passing x and y values. But anyway I got the answer. I am using setappdata and getappdata to retrieve the data.

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

回答 (0 件)

カテゴリ

質問済み:

2013 年 7 月 18 日

Community Treasure Hunt

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

Start Hunting!

Translated by