How to find value of X when Y reaches maximum value
古いコメントを表示
Hello,
I am new to MATLAB Simulink, I want output as the value of X when Y reaches maximum.
Y is a calculated value from an equation and is a function of X

4 件のコメント
Rik
2020 年 8 月 18 日
Does it have to be inside Simulink, or is it also possible to move this problem to Matlab itself?
RAHUL YADAV
2020 年 8 月 18 日
Rik
2020 年 8 月 18 日
I don't know much about Simulink, so I can't help you there. Once you have a function in Matlab itself you can use fminsearch. You want the maximum, so you would need to invert your function (inverted=@(varargin) -YourFunction(varargin{:});)
RAHUL YADAV
2020 年 8 月 19 日
採用された回答
その他の回答 (1 件)
カテゴリ
ヘルプ センター および File Exchange で Simulink についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


