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');

Tags

Products

Community Treasure Hunt

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

Start Hunting!

Translated by