Specify max limit to data from data file

end
D = load('data.txt');
x = D(:,1);
y = D(:,2);
I would like to specify data to be passed to a function to be limited to N indices.
Anyone have any suggestions?
Cheers!

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 10 月 10 日

0 投票

x = D(1:N,1);
y = D(1:N,2);

1 件のコメント

doliph
doliph 2013 年 10 月 10 日
Brilliant. Thanks!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeGet Started with MATLAB についてさらに検索

タグ

質問済み:

2013 年 10 月 10 日

コメント済み:

2013 年 10 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by