Convert Txt file to an array

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

回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 6 月 27 日

0 投票

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

カテゴリ

ヘルプ センター および File ExchangeCell Arrays についてさらに検索

製品

タグ

質問済み:

2022 年 6 月 27 日

回答済み:

2022 年 6 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by