error using load can't read file
1 view (last 30 days)
Show older comments
I write a matlab function which contains save and load command. code:
k=zeros(2002*2002);%then I assign every element in matrix
save %save the variables to a matlab.mat file,the path is the matlab current folder
clearvars %clear all variables
load %load the .mat file
It works well in the matlab environment.
Then I use the complier and make it into a dll(generic com component). I call the dll in vb.net, but it come to an error "error using load can't read file .mat" ,The .mat file is in the right path. So I shut down the vb.net,but when I restart the vb.net and call the dll again, it works well with no fault.
Then I find that I have to restart the vb.net very frequently because of the above phenomenon. How do I solve the problem?
0 Comments
Answers (0)
See Also
Categories
Find more on Deploy to .NET Applications Using MWArray API in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!