Convert Txt file to an array

fid = fopen('C:\Users\Acer\Desktop\project hydro\Offset.txt');
data=textscan(fid,'%s');
fclose(fid);

Answers (1)

data = readmatrix('C:\Users\Acer\Desktop\project hydro\Offset.txt');

Categories

Products

Tags

Asked:

on 27 Jun 2022

Answered:

on 27 Jun 2022

Community Treasure Hunt

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

Start Hunting!