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
Ältere Kommentare anzeigen
Caught "std::exception" Exception message is: Message Catalog MATLAB:bang was not loaded from the file. Please check file location, format or contents
Akzeptierte Antwort
Weitere Antworten (1)
Pradeep Kumar
am 30 Sep. 2015
Bearbeitet: Walter Roberson
am 30 Sep. 2015
3 Kommentare
Pradeep Kumar
am 30 Sep. 2015
Walter Roberson
am 30 Sep. 2015
Bearbeitet: Walter Roberson
am 30 Sep. 2015
A readable form of the source appears to be at http://www.codeforge.com/read/234771/ReadSu.m__html . If that is the version you are using, then it appears to that the code does not fclose(segyid) after it is done with it, so you would end up with this problem.
You should only need a single close('all') after the ReadSu
I notice, however, that in the code you present, you are always reading the same file. Are you also writing to the file in the loop? If the file is not being changed in the loop, then why not just read the data once and process whatever part of it is needed in each loop?
Pradeep Kumar
am 30 Sep. 2015
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!