How to learnt matrix element index...

1 次查看(过去 30 天)
Atakan
Atakan 2011-3-31
for ex; I have matrix written below.
10 11 12
13 14 15
4 5 6
45 55 65
Is there any comment or function to retrieve index of element...
for example I want to learn index of 5,function should give me an ans=(3,2)
...
  1 个评论
Jan
Jan 2011-3-31
This is a very basic question. Please read the "Getting Started" chapters of the documentation.

请先登录,再进行评论。

回答(1 个)

Paulo Silva
Paulo Silva 2011-3-31
m=[10 11 12
13 14 15
4 5 6
45 55 65]
[r,c]=find(m==5)

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by