Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generateMatlabCodeForXML output writing to Program folder when chosing distributed examples #30

Open
TheiBa opened this issue Jun 14, 2017 · 0 comments

Comments

@TheiBa
Copy link
Member

TheiBa commented Jun 14, 2017

Please see Matlab error message below for details.

My interpretation: Example models are installed somewhere in "C:\Programm files", where I do not have write access. When selecting one of those examples in the GUI, it (tries) to write the ouput into the folder where the XML is, not where Matlab currently is. Latter pointing to a potential solution. Alternatively, offer option to specify output folder, or maybe only generate .m and let the user afterwards safe it manually. Work-around:

I would consider this low prio as there is an easy workaround (that worked for me): copy file to a folder where you have write access. And when choosing your own XML this is likely located in a folder with write access anyway.

---- from Matlab prompt ---

generateMatlabCodeForXML
Error using fclose
Invalid file identifier. Use fopen to generate a valid file identifier.

Error in generateMatlabCodeForXML>writeToFile (line 758)
fclose(fid);

Error in generateMatlabCodeForXML>OK_pushbutton_Callback (line 97)
writeToFile(handles);

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in generateMatlabCodeForXML (line 45)
gui_mainfcn(gui_State, varargin{:});

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)generateMatlabCodeForXML('OK_pushbutton_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants