Convert Txt file to an array

6 次查看(过去 30 天)
abdul azim
abdul azim 2022-6-27
fid = fopen('C:\Users\Acer\Desktop\project hydro\Offset.txt');
data=textscan(fid,'%s');
fclose(fid);

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Data Type Conversion 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by