Specify max limit to data from data file

1 view (last 30 days)
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!

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 10 Oct 2013
x = D(1:N,1);
y = D(1:N,2);

More Answers (0)

Categories

Find more on Data Import and Analysis in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!