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!

 Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 10 de Oct. de 2013

Comentada:

el 10 de Oct. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by