reading from excel file and spliting
17 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
shrisha tv
el 20 de Jun. de 2018
Comentada: KSSV
el 20 de Jun. de 2018
hi, I have 50 columns data in Excel file. each column have 5000 data. have to segregate each column 5000 data into separate 100 data * 50 files. it should be done for all 50 columns. manually it is very difficult, whether it is possible using Matlab. if possible please anyone help me..
0 comentarios
Respuesta aceptada
KSSV
el 20 de Jun. de 2018
[num,txt,raw] = xlsread(myfile) ; % REad data from excel file
[nx,ny] = size(num) ;
pos = 1:nx ;
idx = reshape(pos,[],100) ;
for i = 1:size(idx,2)
A = num(idx(:,i),:) ;
xlswrite(['file',num2str(i),'.xlsx'],A)
end
4 comentarios
KSSV
el 20 de Jun. de 2018
This is problem with xlswrite......you may store into someother format....
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import from MATLAB 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!