How to give the same name a Matlab output txt file through input text file?
1 view (last 30 days)
Show older comments
Hello all!
I'm using an input from a text file in this format (bair0011_01.dat) and use that input to name my output file every matlab loop. I also need it to save plots that are generate in each loop. Follow below the code:
[name,path]=uigetfile({'*.dat'},'Select File');
newfile= [path name];
fid=fopen(newfile,'rt');
data=textscan(fid,'%f%f',-1,'Delimiter','\t','HeaderLines' ,1);
fclose(fid);*
FYI: The data are in a dataset array, so I'm exporting through "export command".
Thanks in advance
0 Comments
Answers (0)
See Also
Categories
Find more on Environment and Settings 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!