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

6 ビュー (過去 30 日間)
fatemeh
fatemeh 2013 年 12 月 20 日
コメント済み: Walter Roberson 2013 年 12 月 21 日
i have one m.file for gui and another m.file how can use the text field values in another m.file?

回答 (1 件)

Image Analyst
Image Analyst 2013 年 12 月 20 日
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 件のコメント
fatemeh
fatemeh 2013 年 12 月 21 日
but he dose not say how can i use variables of gui in the m.file!
Walter Roberson
Walter Roberson 2013 年 12 月 21 日
get(handles.NameOfField, 'String')

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

カテゴリ

Help Center および File ExchangeAdding custom doc についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by