How can I import dataset in specific range
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
betul uslu
el 17 de Dic. de 2019
Respondida: Ridwan Alam
el 17 de Dic. de 2019
Hello.
I am trying to import my csv file in specific range for example, from ith column to jth column and from kth row to nth row
I find a class to do this but it is not working correctly.
i=input('Enter a start row: ');
j=input('Enter a end row: ');
k=input('Enter a start column: ');
t=input('Enter a end column: ');
count=0;
search= importfiledataset('search-queries-features.csv',i,j);
[n,p]=size(search);
For example;
I enter values below but when i want to see 'search' p values is always 36. Briefly i need another way to read my csv file without 'importdataset' class
i=1
j=12
k=1
t=12
0 comentarios
Respuesta aceptada
Ridwan Alam
el 17 de Dic. de 2019
i=input('Enter a start row: ');
j=input('Enter a end row: ');
k=input('Enter a start column: ');
t=input('Enter a end column: ');
count=0;
search= csvread('search-queries-features.csv',i,k,[i,k,j,t]);
[n,p]=size(search);
more details: https://www.mathworks.com/help/matlab/ref/csvread.html
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import and Analysis 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!