Filter löschen
Filter löschen

Undefined function 'wgdx' for input arguments of type 'struct'

13 Ansichten (letzte 30 Tage)
Philipp Sikamikanico
Philipp Sikamikanico am 24 Mär. 2014
Bearbeitet: mohammed alwaely am 2 Apr. 2021
Hi,
I tried to safe a 3d array as gdx file. I got the following error message though:
Undefined function 'wgdx' for input arguments of type 'struct'
Do you have any idea how to fix that?
Thank you so much!
  2 Kommentare
Andrej
Andrej am 9 Feb. 2017
I see it's a bit old post. But it maybe usefull to some people that get the same problem.
The answer to the problem is that you need to add GAMS path to Environmental Path in Windows, but to also add GAMS to Matlab Path. Just take a look at the video on the link bellow, it is explained how to do it: https://youtu.be/HPn_q8nlktE
Eric Ela
Eric Ela am 1 Apr. 2018
I saw this error when searching for something I had encountered and am wondering if any Matlab/gams interface users may help me on a similar error. I have GAMS path on environment variables and on the matlab set path. I used to have no issues. I have code that continuously writes and reads GDX files from Matlab. What happens is every so often I receive the error:
Error using wgdx Could not open gdx file with gdxOpenWrite:
This seems to now happen at random. After the error occurs I run the line from the command window and it works no problem. Any idea as to why this fails at random? Any help much appreciated.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

mohammed alwaely
mohammed alwaely am 2 Apr. 2021
Bearbeitet: mohammed alwaely am 2 Apr. 2021
Hi
You should add the Gams Path to your Matlab first.
Open Matlab >> Home tab >> Sep Path >> add folder
you can choise your gams path folder >>click Select folder >> Save.
done! for more info check this video

Kategorien

Mehr zu Startup and Shutdown 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!

Translated by