how to find 4th value of vector in matrix

2 views (last 30 days)
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?

Accepted Answer

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

More Answers (1)

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

Sign in to comment.

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!