フィルターのクリア

How can I import dataset in specific range

1 回表示 (過去 30 日間)
betul uslu
betul uslu 2019 年 12 月 17 日
回答済み: Ridwan Alam 2019 年 12 月 17 日
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

採用された回答

Ridwan Alam
Ridwan Alam 2019 年 12 月 17 日
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);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by