How to import .txt file and export the data that I want
2 views (last 30 days)
Show older comments
I need some help to export the data from this .txt file
I can read it with 'readtable(filename)'
But I don't know how to export the data that I want..
For example in the file
- I want to read time = 0.001, time = 0.002, time = 0.003 .... time = 0.006
and then I want to save this data from matlab to .dat file
1 Comment
Mathieu NOE
on 2 Mar 2021
hello
yes you can read the file and also convert the table to a cell array if needed
T = readtable('flu_all.txt');
C = table2cell(T);
but you don't tell us which data you want to save - be more precise please
Answers (0)
See Also
Categories
Find more on Tables in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!