How i creat Costomer fscanf?
Mostrar comentarios más antiguos
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??
Respuesta aceptada
Más respuestas (1)
Arif Hoq
el 24 de En. de 2023
use readtable function
a=readtable("sol2.txt");
3 comentarios
Majid Majid
el 24 de En. de 2023
Arif Hoq
el 24 de En. de 2023
a=table2cell(readtable("sol2.txt"));
f=split(a(:,2),'E2');
g=cell2table(f(:,1));
h=table(a(:,1),table2array(g));
Majid Majid
el 24 de En. de 2023
Categorías
Más información sobre Import Data en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!