how can use m.file variables to another m.file?

i have one m.file for gui and another m.file how can use the text field values in another m.file?

Answers (1)

If they're scripts, then the values will be in the base workspace and any code running in the base workspace can use them. Or you could save the variables to a .mat file and have the later m-file read it in.

2 Comments

but he dose not say how can i use variables of gui in the m.file!
get(handles.NameOfField, 'String')

Sign in to comment.

Tags

Asked:

on 20 Dec 2013

Commented:

on 21 Dec 2013

Community Treasure Hunt

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

Start Hunting!