Hi everbody
I want to find the "Ne" values which are greater than the "tum_veriler_tamyukgucvolkan" values.
I have 1724 "Ne" values and i can't solve this problem with using simple methods. I must use for loop.
for i=1:1:numel(Ne);
greater_values=find(Ne(1,i)>tum_veriler_tamyukgucvolkan)
end
I have no idea where i have made false things.
Thanks.

답변 (2개)

Star Strider
Star Strider 2015년 11월 29일

0 개 추천

Guessing here since I can’t run your code, but saving the ‘greater_values’ as a cell array could work:
for i=1:1:numel(Ne);
greater_values{i} = find(Ne(1,i)>tum_veriler_tamyukgucvolkan);
end

댓글 수: 2

Volkan Yangin
Volkan Yangin 2015년 11월 29일
thanks a lot for your answer Star Strider, your cell array solution is very helpful now. :-)
Star Strider
Star Strider 2015년 11월 29일
My pleasure!

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

Walter Roberson
Walter Roberson 2015년 11월 29일

0 개 추천

greater_values = Ne(Ne > tum_veriler_tamyukgucvolkan);
With no loop.

댓글 수: 1

Volkan Yangin
Volkan Yangin 2015년 11월 29일
편집: Volkan Yangin 2015년 11월 29일
thanks for your answer Walter Roberson :-)

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

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

질문:

2015년 11월 29일

댓글:

2015년 11월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by