I am facing this problem, ":bang was not loaded from the file" when i incerase lenght of variable in for loop, how can fix this

5 views (last 30 days)
Caught "std::exception" Exception message is: Message Catalog MATLAB:bang was not loaded from the file. Please check file location, format or contents

Accepted Answer

Walter Roberson
Walter Roberson on 29 Sep 2015
Please show your code.
The similar questions that I find suggest that this error is very commonly the result of having fopen()'d too many files without having closed them. In some cases involving load() in a loop, the error has be in the MATLAB implementation in some versions.
  3 Comments
Walter Roberson
Walter Roberson on 29 Sep 2015
Which MATLAB version are you using?
You might be able to add
close('all')
after you do the load(), but it is not certain that the file list known to close() would include all files opened internally by load()

Sign in to comment.

More Answers (1)

Pradeep  Kumar
Pradeep Kumar on 30 Sep 2015
Edited: Walter Roberson on 30 Sep 2015
for r=0.25:0.25:2
for tm=1500:50:5500
display('calling to susddevent code');
ext=sprintf('Suaddevent_edited %f',tm);
close('all');
[data2,sutracehdr2,suhdr2]=ReadSu('cal.su');
%system('close(all');
close('all');
this is part of my code, where I am using ReadSu for loading the data'data.su' file
  3 Comments

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!