how to find 4th value of vector in matrix

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일

0 개 추천

A=[2,3,6,8,7,5,4,2,7,8,9];
B = A(4)

추가 답변 (1개)

vijayasinthujan vijayaratnam
vijayasinthujan vijayaratnam 2012년 2월 19일

0 개 추천

thank you

댓글 수: 1

Jan
Jan 2012년 2월 19일
It is recommended to read the Getting Started chapters of the documentation.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File 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