Convert Txt file to an array
6 views (last 30 days)
Show older comments
fid = fopen('C:\Users\Acer\Desktop\project hydro\Offset.txt');
data=textscan(fid,'%s');
fclose(fid);
0 Comments
Answers (1)
Walter Roberson
on 27 Jun 2022
data = readmatrix('C:\Users\Acer\Desktop\project hydro\Offset.txt');
0 Comments
See Also
Categories
Find more on Data Type Conversion 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!