Storing handle values in a text file

6 views (last 30 days)
nl2605
nl2605 on 18 Jul 2013
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 Comments
Jan
Jan on 18 Jul 2013
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 on 19 Jul 2013
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.

Sign in to comment.

Answers (0)

Categories

Find more on Text Data Preparation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!