Borrar filtros
Borrar filtros

how to find 4th value of vector in matrix

1 visualización (últimos 30 días)
vijayasinthujan vijayaratnam
vijayasinthujan vijayaratnam el 19 de Feb. de 2012
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?

Respuesta aceptada

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

Más respuestas (1)

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

Iniciar sesión para comentar.

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by