How i creat Costomer fscanf?
이전 댓글 표시
Hellow,
I want fscanf a text file same as attech file with the command below:
%%
fileID= fopen('sol2.txt');
sizez=[2,inf];
T=fscanf(fileID,'%f %f,sizez)
fclose(fileID);
%%
But it raeds only 2 Array while i want all of array , readed
How is it possible??
채택된 답변
추가 답변 (1개)
Arif Hoq
2023년 1월 24일
use readtable function
a=readtable("sol2.txt");
댓글 수: 3
Majid Majid
2023년 1월 24일
Arif Hoq
2023년 1월 24일
a=table2cell(readtable("sol2.txt"));
f=split(a(:,2),'E2');
g=cell2table(f(:,1));
h=table(a(:,1),table2array(g));
Majid Majid
2023년 1월 24일
카테고리
도움말 센터 및 File Exchange에서 Import Data에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!