Azzera filtri
Azzera filtri

how to find 4th value of vector in matrix

1 visualizzazione (ultimi 30 giorni)
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?

Risposta accettata

Wayne King
Wayne King il 19 Feb 2012
A=[2,3,6,8,7,5,4,2,7,8,9];
B = A(4)

Più risposte (1)

vijayasinthujan vijayaratnam
thank you
  1 Commento
Jan
Jan il 19 Feb 2012
It is recommended to read the Getting Started chapters of the documentation.

Accedi per commentare.

Categorie

Scopri di più su Get Started with MATLAB in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by