Undefined function 'wgdx' for input arguments of type 'struct'
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Andrej
il 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
il 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.
Risposte (1)
mohammed alwaely
il 2 Apr 2021
Modificato: mohammed alwaely
il 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
0 Commenti
Vedere anche
Categorie
Scopri di più su Structures in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!