reading data from dataset.txt
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
hello all, i have this file that contain the following
#NB_OF_USERS_PAIRS 1
1 2 2
#NB_OF_EDGE_PAIRS 2
2 2 3
3 2 3
i want to make a function that read from this file the number 1 after the #NB_OF_USERS_PARIS and read then the numbers 1 2 2 and so on, any help to begin writing this function please
0 comentarios
Respuestas (2)
Nirmal
el 5 de Jul. de 2012
fid = fopen('data.txt');
M=textscan(fid,'%s');
fclose(fid);
X=M{1,1}
X will have each element including the header for users pairs and edge pairs.
0 comentarios
Ver también
Categorías
Más información sobre Large Files and Big Data en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!