필터 지우기
필터 지우기

How can i know through MATLAB tool that given function is convex or not?

조회 수: 20 (최근 30일)
Dear ALL, is there any way to find the function is convex or not in MATLAB?As an example i am giving you the following two functions in order to check which one is convex.
These are well known functions used in robust estimation.How can i show through matlab tool the function is convex or not?
Thanks

채택된 답변

Walter Roberson
Walter Roberson 2016년 5월 10일
Look at the number of zeros of derivatives and the signs of derivatives. Repeat with derivatives of that, as many times as necessary to figure out the rule.
  댓글 수: 6
Walter Roberson
Walter Roberson 2016년 5월 10일
symbolic toolbox, solve() for the derivative equal 0.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Roger Stafford
Roger Stafford 2016년 5월 10일
편집: Roger Stafford 2016년 5월 10일
If your function has a second derivative, it is convex if and only if that second derivative is always non-negative. If the second derivative is unobtainable, a function is convex if any chord connecting two points on the curve always lies on or above the portion of the curve between the two points. Look at this site for a definition:
https://en.wikipedia.org/wiki/Convex_function
Your f2 function is certainly not convex as can be determined by just looking at it. A simple plot reveals that f1 is convex over the interval where it is real-valued.

카테고리

Help CenterFile Exchange에서 Bounding Regions에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by