Convert Txt file to an array

조회 수: 6 (최근 30일)
abdul azim
abdul azim 2022년 6월 27일
답변: Walter Roberson 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