how to find 4th value of vector in matrix

2 vues (au cours des 30 derniers jours)
vijayasinthujan vijayaratnam
i have answer given by matlab in the form of vector
A=[2,3,6,8,7,5,4,2,7,8,9]
now i need to find only 4th value(which is 8 ) to appear on screen?

Réponse acceptée

Wayne King
Wayne King le 19 Fév 2012
A=[2,3,6,8,7,5,4,2,7,8,9];
B = A(4)

Plus de réponses (1)

vijayasinthujan vijayaratnam
thank you
  1 commentaire
Jan
Jan le 19 Fév 2012
It is recommended to read the Getting Started chapters of the documentation.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by