how do i write a for loop to eliminate point under a certain value?

2 ビュー (過去 30 日間)
Ernest Adisi
Ernest Adisi 2018 年 8 月 15 日
編集済み: Stephen23 2018 年 8 月 15 日
hi, i want to omit all points under a certain value for a series of plots as shown. would it be something like
for i=100:a
Ti_x=Ti(i,:);
if Ti(i,:)<==0.25
{how do i tell it to omit these points}
f6=figure;
plot(x_cntr,Ti_x,'*')
xlabel({'X/D'})
ylabel({'TI'})
title('Streamwise Turblence Intensity')

採用された回答

Stephen23
Stephen23 2018 年 8 月 15 日
編集済み: Stephen23 2018 年 8 月 15 日
With basic indexing:
Ti_x(Ti_x<=0.25) = NaN
NaN values do not get plotted.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by