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 Kommentar

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?

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Weitere Antworten (0)

Kategorien

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by