define all data of the row data based on one element of this row form huge array

2 ビュー (過去 30 日間)
Moataz alakkad
Moataz alakkad 2022 年 7 月 23 日
編集済み: Voss 2022 年 7 月 24 日
hello;
I have been created code for iteration, and the result of code is a huge data
the rquired output is the max value , and I need to identfy the input data value( I1, x11,a11, I2, x21, a21, I3, x31, a31) of this max value which is 8.8828e+5
Input = [I1, x11,a11, I2, x21, a21, I3, x31, a31]
Output = F
result=[Output Input]
best_reuslt= max(Output)

採用された回答

Voss
Voss 2022 年 7 月 23 日
% also store the index where the maximum occurs:
[best_result,idx] = max(Output)
% use that index to get the row of Input
% corresponding to the maximum Output:
best_input = Input(idx,:)
  2 件のコメント
Moataz alakkad
Moataz alakkad 2022 年 7 月 23 日
Thanks allot dear
Voss
Voss 2022 年 7 月 23 日
編集済み: Voss 2022 年 7 月 24 日
You're welcome!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by