Finding value with row and column headings

Hi,
I have an array which looks like the following:
I would like to find all values which are greater than 0.95 as well as in which column and row I can find it. Precisely, I would like to get the the information that in column H, row G there is a value of 0.9936.
Thanks for help.

댓글 수: 2

Matt J
Matt J 2021년 5월 14일
Wll, you first have to read it into Matlab. Have you used readtable or readmatrix to do this? In what form is the data now?
MK
MK 2021년 5월 14일
Yes, I did. The headings are gone and the table looks like this:
The headings are lost, which I would need to get the information of which rows and colums with that specific heading show values above 0.95.

댓글을 달려면 로그인하십시오.

답변 (1개)

Scott MacKenzie
Scott MacKenzie 2021년 5월 14일

0 개 추천

Assuming your data are in a matrix named data, try this...
[row, col] = find(data > 0.95);
The variables row and col identify the locations of the elements > 0.95.

카테고리

도움말 센터File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

질문:

MK
2021년 5월 14일

답변:

2021년 5월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by