Convert Txt file to an array

6 views (last 30 days)
abdul azim
abdul azim on 27 Jun 2022
Answered: Walter Roberson on 27 Jun 2022
fid = fopen('C:\Users\Acer\Desktop\project hydro\Offset.txt');
data=textscan(fid,'%s');
fclose(fid);

Answers (1)

Walter Roberson
Walter Roberson on 27 Jun 2022
data = readmatrix('C:\Users\Acer\Desktop\project hydro\Offset.txt');

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!