Is it possible to write argmin in the equation for MATLAB live script ?

조회 수: 1 (최근 30일)
Thanacha Choopojcharoen
Thanacha Choopojcharoen 2020년 2월 16일
편집: Walter Roberson 2020년 2월 16일
Is it possible to write argmin in the equation for MATLAB live script ? I've been trying to write an exercise in the script. If there isn't any way to do, may I highly suggest this for the next release ?
Thank you.
  댓글 수: 1
Walter Roberson
Walter Roberson 2020년 2월 16일
편집: Walter Roberson 2020년 2월 16일
Note that the first few releases of Live Script did not permit pure functions to be defined in Live Script, but that current versions do permit Live Script to be pure function definitions that can be called by other routines.

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

답변 (1개)

Steven Lord
Steven Lord 2020년 2월 16일
What specifically do you mean when you say argmin?
Do you mean the location of the minimum element in a vector? See the second output of the min function.
Do you mean the number of inputs with which the live function was called? I believe nargin and narginchk both work inside a live function.
Do you mean a value that minimizes the live function? Call fminsearch or fmincon with a handle to your live function as input.
If you mean something else, please clarify.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by