MATLAB Answers

How to display the Index of a matrix to other corresponding matrices by considering relations

20 views (last 30 days)
Please can you help me solve this matrix?
A=[12 8 6;10 11 3;25 9 20]
B=[8 9 16;18 8 5;10 13 7]
C=[4 3 30;13 80 21;6 11 17]
I want to find the numbers (with their index) that are greater than or equal to 10 in matrix A (A>=10) and at the same time, the matrices of B and C should display their corresponding values at which A>=10
Thank you

Accepted Answer

KALYAN ACHARJYA
KALYAN ACHARJYA on 23 Feb 2021
Edited: KALYAN ACHARJYA on 23 Feb 2021
No need to get the indices, you can directly map as per A>=10 condition in B and C
A(A>=10)
B(A>=10)
C(A>=10)
  4 Comments

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by