Effacer les filtres
Effacer les filtres

accessing particular parts of an array

2 vues (au cours des 30 derniers jours)
Tom
Tom le 7 Jan 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 commentaire
Matt Fig
Matt Fig le 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?

Connectez-vous pour commenter.

Réponse acceptée

Andrew Newell
Andrew Newell le 7 Jan 2012
  1 commentaire
Tom
Tom le 9 Jan 2012
Many thanks.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by