openEMS and Matlab

Install support for openEMS

Moderators: thorsten, sebastian

Post Reply
Posts: 2
Joined: Fri 30 Aug 2019, 12:31

openEMS and Matlab

Post by skyblade_2019 » Fri 30 Aug 2019, 12:45


I am using a student version of Matlab. Matlab R2019a.
I am trying to install the openEMS solver.

I did the following, together with the instructions of installation:

Download the latest 64bit openEMS.
-> I downloaded

Unzip to a folder of your choice e.g. "D:/" (zip contains an openEMS folder)
-> I extracted the zip file in my desktop folder

Add the openEMS path to Matlab (maybe in a "startup.m" in your Matlab startup folder):
add path('D:/openEMS/matlab');
-> This is the part I got confused.
-> I used the environment variables under Windows
->Windows [Control Panel] in [System] to open [Advanced System Settings] and select [Environment Variables] button. [New] or [Edit] Click to environment variable MATLABPATH to create or edit. So my variables are
Variable name: MATLABPATH
Variable value: C:/openEMS/matlab

I restarted Matlab r2019a.

Once I go for checking in the cmd command window, I typed openEMS to check but it shows:
'openEMS' is not recognized as an internal or external command, operable program or batch file.

I am not really sure how to add the path in windows.

thank you for your time.

Posts: 3
Joined: Mon 02 Sep 2019, 22:45

Re: openEMS and Matlab

Post by Qbort » Mon 02 Sep 2019, 22:51

Hi there,

Hopefully I can help:

All you need to do is run the command below in Matlab before can run OpenEMS commands (just type it in the Matlab command window and press enter). The suggestion is that you add this to your startup.m file (which I understand gets called every time matlab launches, saving you having to run this command every time).

Code: Select all

(Replace D:/openEMS/ with the path to your installation folder


Posts: 2
Joined: Fri 30 Aug 2019, 12:31

Re: openEMS and Matlab

Post by skyblade_2019 » Sat 07 Sep 2019, 07:34

Hi Qbort!


Post Reply