I created a GUI in MATLAB R2013b and it works fine, but when I try and run the same program in R2015b I get errors. What could be some potential problems as to why it won't work?

4 Kommentare

Steven Lord
Steven Lord am 19 Jul. 2017
Can you post the text of the error messages you received? That might help us give more relevant suggestions.
mlb452
mlb452 am 19 Jul. 2017
Well now I'm receiving a different error, after changing nothing.
This is what the current error says:
Error in poly_graph
Error in tf_process_gui/executebutton_Callback
Error while evaluating UIControl Callback
poly_graph is a function referenced in my main .m file. This is the same type of error I was receiving yesterday. It was just referencing a different function.
mlb452
mlb452 am 19 Jul. 2017
Now the original errors are popping back up. They say:
Error using fprintf. Invalid file identifier. Use fopen to generate a valid file identifier
Error while evaluating UIControl Callback.
Again, when I run this with R2013b, I get no errors. So I don't understand why I'm having issues with the fprintf now...
Error in poly_graph
That's not the whole text of the error message. You posted where the error occurs, but not what error occurred.
Error using fprintf. Invalid file identifier.
Use fopen to generate a valid file identifier
You called fopen to create a file identifier that you then passed to fprintf. Call fopen with two outputs. If the first is -1, display the second to learn more information about why fopen was not able to create a valid identifier.
Often this happens because you don't have write permission to the directory in which you're trying to create the file. If you're trying to write to a different directory in the different releases, that could explain why the code fails in one release but not in the other.

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Star Strider
Star Strider am 18 Jul. 2017

0 Stimmen

See the documentation that discusses Graphics Changes in R2014b (link).

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by