Borrar filtros
Borrar filtros

accessing particular parts of an array

2 visualizaciones (últimos 30 días)
Tom
Tom el 7 de En. de 2012
i'm just wondering how i can refer to particular values within arrays. so if i had
x=[0,1,2,3,4];
y=x^2;
Then for whatever reason - maybe after a few more lines of code - i wanted to refer back to individual parts of the y array - how would i do that?
  1 comentario
Matt Fig
Matt Fig el 2 de Nov. de 2012
i'm just wondering how i can refer to particular values within arrays. so if i had
x=[0,1,2,3,4];
y=x^2;
Then for whatever reason - maybe after a few more lines of code - i wanted to refer back to individual parts of the y array - how would i do that?

Iniciar sesión para comentar.

Respuesta aceptada

Andrew Newell
Andrew Newell el 7 de En. de 2012

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by