function min
古いコメントを表示
How to see the code(algorithm) of function "min" in MATLAB???
Thanks
回答 (2 件)
Sean de Wolski
2012 年 2 月 28 日
4 投票
5 件のコメント
Aldin
2012 年 2 月 28 日
Sean de Wolski
2012 年 2 月 28 日
If you want to see the code for min(), you need to work here!
The first step is to apply, we encourage you and everyone who thinks they might be a good fit for a career at MathWorks, to do so!
Aldin
2012 年 2 月 28 日
Aldin
2012 年 2 月 28 日
Walter Roberson
2012 年 2 月 28 日
The symbolic toolbox solve() routine has many many parts to it, a major programming effort, as it has to deal with a large number of different functions -- it is _not_ restricted to polynomials.
Generally speaking, roots of polynomials are usually found in symbolic packages by looking for Groebner Basis. (Unfortunately I never did figure out what a Groebner Basis _is_ or how to find one...)
Wayne King
2012 年 2 月 28 日
1 投票
Hi, you cannot. That is a built-in (compiled) function. The source code for the function and others like is not shipped with MATLAB.
5 件のコメント
Aldin
2012 年 2 月 28 日
Walter Roberson
2012 年 2 月 28 日
For any given function, say XYZ, you can command
type XYZ
at the command line.
The source will be shown if it exists. If all you see is comments and help text, then the _real_ source is not implemented in MATLAB.
Sean de Wolski
2012 年 2 月 28 日
cool!
Aldin
2012 年 2 月 28 日
Walter Roberson
2012 年 2 月 28 日
type min
type solve
type diff
For the version I am using, the response is:
>> type min
'min' is a built-in function.
>> type solve
??? Error using ==> type
File 'solve' not found.
>> type diff
'diff' is a built-in function.
which is expected: min and diff are not implemented in the MATLAB language, and solve is part of a toolbox that I do not have.
カテゴリ
ヘルプ センター および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!