accessing particular parts of an array

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

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

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

Tom
el 7 de En. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by