define all data of the row data based on one element of this row form huge array
1 次查看(过去 30 天)
显示 更早的评论
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)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1074795/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1074800/image.jpeg)
0 个评论
采纳的回答
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,:)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!