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!


