Azzera filtri
Azzera filtri

accessing particular parts of an array

2 visualizzazioni (ultimi 30 giorni)
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 Commento
Matt Fig
Matt Fig il 2 Nov 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?

Accedi per commentare.

Risposta accettata

Andrew Newell
Andrew Newell il 7 Gen 2012

Più risposte (0)

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by