Find the index value
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
0 개 추천
I have a an array.I need to find its index value.How can i do that?
댓글 수: 1
Walter Roberson
2019년 10월 6일
Is the index Circulated, Almost Uncirculated, or Mint Condition?
채택된 답변
KALYAN ACHARJYA
2019년 10월 6일
편집: KALYAN ACHARJYA
2019년 10월 6일
0 개 추천
>> array_data=2:3:30
array_data =
2 5 8 11 14 17 20 23 26 29
Case 1: I assumed you are looking for index value of specific element in the array, say 17
idx=find(array_data==17)
Case 2: for all array Elements
idx=1:length(array_data)
Hope it helps!
댓글 수: 10
Silpa K
2019년 10월 12일
Is it possible to find the label value using this.
KALYAN ACHARJYA
2019년 10월 12일
편집: KALYAN ACHARJYA
2019년 10월 12일
label value means?
Can you elaborate with example?
Silpa K
2019년 10월 12일
If I have a dataset that contain 137 rows.I need to find the label value of each row.
Image Analyst
2019년 10월 12일
Unfortunately you forgot to provide the example KALYAN asked for. Please do so.
What is the label of each row? Is the label of row 87, 87 and the label of row 123, 123? If each label is just the index (i.e. row number), you could do
labels = 1 : size(m, 1);
Silpa K
2019년 10월 12일
I have the following dataset ,In this dataset 1 st column is the set of labels that corresponding to the row.I need th find the labels row by row.
Walter Roberson
2019년 10월 12일
The first column contains 1s and 2s. I am not clear on what you mean by finding the labels row by row?
T = readtable('ECGFiveDays_TRAIN.xlsx','readvariablenames',false);
labels = T{:,1};
Silpa K
2019년 10월 12일
Find the label of 1st row next finding the label of second row or finding label of a specific row.
Walter Roberson
2019년 10월 12일
After the code I posted had been executed, the label of first row would be labels(1). The label of second row would be labels(2). The label of the K'th row would be labels(K).
Silpa K
2019년 10월 13일
Thank you sir.
KALYAN ACHARJYA
2019년 10월 13일
Answer Credit Goes to @Walter Sir
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
태그
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
