when I using readtable to read .csv file all variable data get mixed, what are the reason for this and provide proper solution for this
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ritesh
el 21 de Mzo. de 2023
Comentada: Stephen23
el 21 de Mzo. de 2023
data3 = readtable('daily_cloud_free_data.csv');
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1331420/image.jpeg)
2 comentarios
Respuesta aceptada
Stephen23
el 21 de Mzo. de 2023
There is no need to change the file format when you can simply specify the delimiter when importing:
T = readtable('daily_cloud_free_data.csv', 'Delimiter',',')
T = rmmissing(T)
0 comentarios
Más respuestas (1)
aakash dewangan
el 21 de Mzo. de 2023
Try this format, in my work it works well :)
T = readtable('Acceleration with g 2023-03-15 23-30-50.xls');
time = (T(:,1)); % column 1
Acc = (T(:,4)); % column 4
time = table2array(time); % column 1 vector
Acc = table2array(Acc); % column 4 vector
1 comentario
Stephen23
el 21 de Mzo. de 2023
This code:
time = (T(:,1));
Acc = (T(:,4));
time = table2array(time);
Acc = table2array(Acc);
is simpler using the correct curly-brace indexing:
time = T{:,1};
Acc = T{:,4};
Ver también
Categorías
Más información sobre Get Started with 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!