How i creat Costomer fscanf?
Afficher commentaires plus anciens
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??
Réponse acceptée
Plus de réponses (1)
Arif Hoq
le 24 Jan 2023
use readtable function
a=readtable("sol2.txt");
3 commentaires
Majid Majid
le 24 Jan 2023
Arif Hoq
le 24 Jan 2023
a=table2cell(readtable("sol2.txt"));
f=split(a(:,2),'E2');
g=cell2table(f(:,1));
h=table(a(:,1),table2array(g));
Majid Majid
le 24 Jan 2023
Catégories
En savoir plus sur Import Data dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!