How to read data from .m file in GUI?

조회 수: 21 (최근 30일)
RJS
RJS 2021년 11월 20일
답변: Cris LaPierre 2021년 11월 20일
My GUI would contain one drop-down menu to select the data files. But I don't know how to extract data from m file to GUI
can u help me.
  댓글 수: 2
Rik
Rik 2021년 11월 20일
Extracting data from an m file is fairly difficult. M files contain code that could create variables when it is run. Are you sure you don't mean mat files?
RJS
RJS 2021년 11월 20일
My M files contain some transfer function , and I want to extract the coefficient's of numerator and denominator.

댓글을 달려면 로그인하십시오.

채택된 답변

Cris LaPierre
Cris LaPierre 2021년 11월 20일
See the answer here.
You would have to run the script from the gui. Then the variables it creates would exist in the corresponding callback function workspace.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by