Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
fatemeh
fatemeh am 20 Dez. 2013
Kommentiert: Walter Roberson am 21 Dez. 2013
i have one m.file for gui and another m.file how can use the text field values in another m.file?

Antworten (1)

Image Analyst
Image Analyst am 20 Dez. 2013
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 Kommentare
fatemeh
fatemeh am 21 Dez. 2013
but he dose not say how can i use variables of gui in the m.file!
Walter Roberson
Walter Roberson am 21 Dez. 2013
get(handles.NameOfField, 'String')

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by