It is fine to load small mat file but when i try to load ones that s several hundreds of mb it will not succeed until i restart the matlab which is an annoying issue.
Not a binary mat file try load to read as text.
Do you have any way of checking the image to ensure it s not broken.
Can you load it as a png or other format.
I can also load data using the same mat files and the same program in another computer earlier today.
It sounds like either a corrupted file or that it was saved as a mat despite being incapable of preserving the data.
Hello i have the same problem as zhentong and it is not due to no such file or directory the file definitely exists.
Try load ascii to read as text.
Now clearly the file is a mat file.
Learn more about simulink simscape driveline stateflow simscape dct dual clutch transmission mat file error.
Relative file paths are always relative to the current working directory and the current working directory doesn t have to be the location of your python script.
Error unable to read mat file.
Try load ascii to read as text.
Try load ascii to read as text it s very strange that this program did work in the computer i m now using yesterday.
I both try on a windows10 r2015a and ubuntu16 04 r2017a environment but received the same problem.
The files are quite large several hundred mb and due to the network take a long time 5mins or so to be written.
The command line suggests try load ascii to read as text before i go down that route i want to know what has gone wrong.
Unable to read mat file not a binary mat file.
I am developing 2 guis that are being compiled using deploytool on a vista home premium machine running matlab 2007a and testing on a xp pro machine without matlab installed.
Try load ascii to read as text.
For a little more background.
Asking for help clarification or responding to other answers.
It s a common misconception that relative paths are relative to the location of the python script but this is untrue.