Filter löschen
Filter löschen

how to find 4th value of vector in matrix

1 Ansicht (letzte 30 Tage)
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?

Akzeptierte Antwort

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

Weitere Antworten (1)

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

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by