Convert vector position to real number

조회 수: 1 (최근 30일)
Krish Desai
Krish Desai 2015년 10월 11일
답변: Matt J 2015년 10월 12일
Really simple question, I have the following:
>> vec=[44 3 2 9 11 6]
vec =
44 3 2 9 11 6
>> find(vec>6)
ans =
1 4 5
How do I convert the values into their real number? As in how do I have 44 9 11 show up
  댓글 수: 1
Tom
Tom 2015년 10월 11일
indices = find(vec>6)
vec(indices)

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

채택된 답변

Matt J
Matt J 2015년 10월 12일
vec(vec>6)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by