find in for loop
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(2 个)
Star Strider
2015-11-29
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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!