Matlab crashes with loading certain data

7 vues (au cours des 30 derniers jours)
Jeroen Aeles
Jeroen Aeles le 26 Nov 2015
Commenté : Star Strider le 26 Nov 2015
Hi,
Matlab (R2013a) crashes when I try to load certain data (see image attached).
It gives me the error and then just does not respond anymore and I have to restart it. It is not just 1 file but every file of that kind of data.
I guess my question is, why does it crash on my Matlab/computer but not on other computers I have tried it on ( with different versions). Will it be solved when I install a newer version of Matlab or is it specific to my computer system?
Thanks for any help.
Jeroen

Réponses (1)

Star Strider
Star Strider le 26 Nov 2015
It’s difficult to determine exactly what the problem is. According the documentation for load, the filename is the first argument and the optional argument '-ascii' the second. In the image you posted, the order of those arguments are reversed.
  2 commentaires
Jeroen Aeles
Jeroen Aeles le 26 Nov 2015
Thanks for the reply. But would that explain why it runs on other computers with the exact same datafile and the exact same script to import the data?
I get the crash when I import data using:
data_temp = importdata(fullfile(path, file));
But also with the built-in "import data" in the Matlab GUI.
Star Strider
Star Strider le 26 Nov 2015
I can’t run your code and so reproduce your error (I’m not even certain what the error is), so I have no idea. My best guess is that the path on one computer is different from the path on your other computer, and your code is somehow not picking that up.
One possibility is to use the which function to be certain you are using the correct path. Beyond that, I have absolutely no idea.
If that’s not the problem, I’ll delete my Answer in a few minutes, since it’s obvious I can’t contribute anything useful here.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Workspace Variables and MAT-Files dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by