如何知道提取出的元素是矩阵的第几行第几列的元素。

6 views (last 30 days)
faheem
faheem on 17 May 2023
Answered: hmarda on 17 May 2023
随机提取矩阵中的某个元素后,如何知道提取出的元素是矩阵的第几行第几列的元素

Accepted Answer

hmarda
hmarda on 17 May 2023
仅供参考
clear
clc
A = rands(5,5)
b = A(8)
[r,v] = find(b==A)

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!