Nicholas
Nicholas

Reputation: 1935

Matlab UI program works unproperly after deploytool

this is the first time I'm encountering this kind of issue. I have a perfectly working code that runs without any issue under 3 different platforms (Win/Linux/OS X). However after the deploytool compilation a part of it stops working. How can I get the error once the code is compiled!? It seems that it has some problems in loading and reading .mat files. Is that possible? I hope someone can help me.

Thanks

edit: I've solved the problem! Unfortunately was all addpath fault! I have a lot of folders with files and functions that are needed for running the code, after the compilation matlab does a mess with all of that folders. Good hint: do not use addpath for the compilation! Thank you anyway!

Upvotes: 1

Views: 193

Answers (1)

Dennis Jaheruddin
Dennis Jaheruddin

Reputation: 21563

You can try to catch the error and write it to a text file. Or build in a check that prints text to the screen.

A bit more in general: You can try to isolate the part of the code that has the problem, and then basically cut out half of the functionality in this part repeatedly until you have exactly found the source of the error.

Upvotes: 2

Related Questions