How do I get a value in a table with a known index?

조회 수: 3 (최근 30일)
Igor Fragoso
Igor Fragoso 2022년 8월 22일
편집: Voss 2022년 8월 22일
Dear Sirs,
I have a text file, with three columns. I know that de 47th value (index 47) in the first column is 5.12, but I don't know how to get the value in the same index, but at third column.
Maybe it's a simple question but I apreciate any help.
Regards,
Igor

채택된 답변

Voss
Voss 2022년 8월 22일
data = readmatrix('22-08-2022_12-59-07_Results.txt');
data(47,3)
ans = 10.9200
  댓글 수: 2
Igor Fragoso
Igor Fragoso 2022년 8월 22일
Thank you very much. It works fine!!!! Best Regards, Igor
Voss
Voss 2022년 8월 22일
편집: Voss 2022년 8월 22일
You're welcome!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by