Filter löschen
Filter löschen

How can I import dataset in specific range

1 Ansicht (letzte 30 Tage)
betul uslu
betul uslu am 17 Dez. 2019
Beantwortet: Ridwan Alam am 17 Dez. 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

Akzeptierte Antwort

Ridwan Alam
Ridwan Alam am 17 Dez. 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);

Weitere Antworten (0)

Produkte


Version

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by