Convert Txt file to an array
Show older comments
fid = fopen('C:\Users\Acer\Desktop\project hydro\Offset.txt');
data=textscan(fid,'%s');
fclose(fid);
Answers (1)
Walter Roberson
on 27 Jun 2022
data = readmatrix('C:\Users\Acer\Desktop\project hydro\Offset.txt');
Categories
Find more on Cell Arrays 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!