How can I launch a FreeFem++ (.edp) file from MATLAB 2018b?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Wael Wanis
am 11 Aug. 2019
Bearbeitet: Wael Wanis
am 15 Aug. 2019
Hello everyone,
I am working on Creating a GUI using MATLAB App Designer, the user will insert some inputs, click on Run, then some code is executed, then the output figure should appear.
My problem is that the code is executed by FreeFem++ software, so how can I embedd the code in the MATLAB, i mean when the button in the GUi is clicked, how can it automatically open the FreeFem (.edp) file and execute it?
Thank you.
0 Kommentare
Akzeptierte Antwort
Divya Gaddipati
am 14 Aug. 2019
In the ButtonPushed callback function, you can add the following line for executing a .edp file
system(['FreeFem++ ' path_to_file]);
If you want to select a file interactively, you could also use the uigetfile function
[file, path] = uigetfile('*.edp');
selectedFilePath = fullfile(path, file)
system(['FreeFem++ ' selectedFilePath]);
Note: Make sure the folder names in your selectedFilePath do not have spaces.
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Interactive Control and Callbacks 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!