필터 지우기
필터 지우기

If I have multiple function, then how can I get the function of min(fun1,fun2,fun3,...)?

조회 수: 5 (최근 30일)
If there are functions like
R1(x), R2(x), R3(x), R4(x)
then when I need to draw new funcion graph that show the min value function for x
like
min(x)= min(R1(x),R2(x),...)
how can I code this function?

채택된 답변

Vladimir Sovkov
Vladimir Sovkov 2020년 7월 31일
편집: Vladimir Sovkov 2020년 7월 31일
xmin=min([R1(x(:)');R2(x(:)');...]); % to get a correct result, the argument must be a row-vector: x(:)' turns any input array to it; do not use "min" for your inner variables as it is the name of the inbuilt matlab function
plot(x,xmin,'.-');

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics and Optimization에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by