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

조회 수: 5 (최근 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 CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!