How to read data from .m file in GUI?

3 Ansichten (letzte 30 Tage)
RJS
RJS am 20 Nov. 2021
Beantwortet: Cris LaPierre am 20 Nov. 2021
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 Kommentare
Rik
Rik am 20 Nov. 2021
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 am 20 Nov. 2021
My M files contain some transfer function , and I want to extract the coefficient's of numerator and denominator.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Cris LaPierre
Cris LaPierre am 20 Nov. 2021
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.

Weitere Antworten (0)

Kategorien

Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by