How to import text files with unrecognized file extensions
Mostra commenti meno recenti
I'm working on a GUI to analyze data generated by another program. The data is in the form of text files with various descriptive files extensions like .eigen or .summary. I am having trouble importing these using 'importdata', 'fopen' and 'open'. These can be loaded into the workspace using the import wizard but I would prefer to have this operation performed by code in my GUI. I understand that the 'open' function can be extended to handle other file extensions but I am unclear on how exactly to do this. Any help would be greatly appreciated.
-Jeremy
Risposta accettata
Più risposte (1)
A Jenkins
il 4 Set 2013
0 voti
Did you say the Import Wizard is working for you? It has a checkbox that says "Generate MATLAB Code".
Does this provide the code you want?
2 Commenti
Jeremy
il 4 Set 2013
Walter Roberson
il 4 Set 2013
Possibly you are not in the correct directory at the time you attempt to import the file. How are you building the file name to import ?
Categorie
Scopri di più su Large Files and Big Data in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!