Call and Run External software [ jEplus.jar ] from MATLAB

Hi everybody:
jEplus.jar tool is a simulation tool which its output results is in (.csv =or excle).Now i want to Call jEplus.jar from matlab to run jEplus.jar tool to give us output(.csv) automaticly,Not running jEplus.jar by hand.I Try alot,But Unfortunately,I Couldn't do it.any idea??Help me please?? Thanks ALL

Réponses (1)

Pooya Darghiasi
Pooya Darghiasi le 3 Jan 2020
Modifié(e) : Image Analyst le 3 Jan 2020

0 votes

You can run jEPlus from a Windows command prompt with some predefined commands available in the jEPlus manual. Technically, you will be able to modify the input file, or import it from a csv file, and run the jEPlus commands all with command prompts. In order to control the software from MATLAB you use "system" function. What the system() function does is to get the command in MATLAB and run it in a command prompt. So simply just write the command in the "system" function of MATLAB. Then what happens is that jEPus would be run and it will save the results in the output folder in a csv file. You would be able to read the output csv results file with MATLAB's csvread() function.

Catégories

En savoir plus sur Files and Folders dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by