Page 1 of 1

openEMS and Matlab

Posted: Fri 30 Aug 2019, 12:45
by skyblade_2019
Hello,

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 openEMS_x64_v0.0.35.zip

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.

Re: openEMS and Matlab

Posted: Mon 02 Sep 2019, 22:51
by Qbort
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

addpath('D:/openEMS/matlab');
(Replace D:/openEMS/ with the path to your installation folder

Qbort

Re: openEMS and Matlab

Posted: Sat 07 Sep 2019, 07:34
by skyblade_2019
Hi Qbort!
Thanks!

/skyblade