How to display data read from a .dat file in a GUI?

4 views (last 30 days)
Hello to all,
I am a beginner at programming GUIs and reading files using Matlab. Therefore I am struggling against the following problem: I want to be able to read data from a .dat file, and then display that data in a GUI. A very basic example would be to have a .dat file containing "mass = 10; length = 8; result = mass*length;", then the code would have to:
1) import that data in Matlab
2) create a GUI displaying
" mass = 10;
length = 8;
result = 80".
Another important point: I'd like to be able to edit the mass & length directly in the GUI without having to change the .dat file...
Thank you very much for your help.

Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!