How to read data from .m file in GUI?

2 ビュー (過去 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 Center および File ExchangeData Import and Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by