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

6 vues (au cours des 30 derniers jours)
faheem
faheem le 17 Mai 2023
Réponse apportée : hmarda le 17 Mai 2023
随机提取矩阵中的某个元素后,如何知道提取出的元素是矩阵的第几行第几列的元素

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!