フィルターのクリア

Displaying a result from a matrix once reached a certain value

2 ビュー (過去 30 日間)
SGer
SGer 2022 年 9 月 13 日
回答済み: Walter Roberson 2022 年 9 月 13 日
Hi there,
I'm having trouble trying to code a way to display the last result from an array once the value in the row reaches <1000. I ahve created a loop for values of p to calclaute results for F_M1.
I want to display which value of p produces a value for F_M1 (in both columes) that is less than 1000. I know the value of p = 1648 by looking at the results but I want to create a code that references this without having to enter the result.

回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 9 月 13 日
find(all(F_M1 < 1000, 2), 1)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by