필터 지우기
필터 지우기

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

조회 수: 2 (최근 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 CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by