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);

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 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