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

6 ビュー (過去 30 日間)
faheem
faheem 2023 年 5 月 17 日
回答済み: hmarda 2023 年 5 月 17 日
随机提取矩阵中的某个元素后,如何知道提取出的元素是矩阵的第几行第几列的元素

採用された回答

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!