how to find 4th value of vector in matrix

1 次查看(过去 30 天)
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?

采纳的回答

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

更多回答(1 个)

vijayasinthujan vijayaratnam
thank you
  1 个评论
Jan
Jan 2012-2-19
It is recommended to read the Getting Started chapters of the documentation.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by