Hello. I have a strange problem. I am reading two types of files '-ascii' and '-mat' but the load function must be set to one of them but I don't know what tpye of file is currently reading. My question is how to write a code so it will be work for both types of files.
MATLAB: Reading mat or ascii files
asciiloadmatMATLAB
Related Question
- Help with load command: how to use data set without knowing name prior to loading
- How to obtain size data from multi loaded text files
- Load certain index .mat file
- Changing the name of the file that is corrupt
- Error loading file that exists, after ls, will load one time and then won’t load.
- Is matlab not allowing me to load this data
Best Answer