what are built-in functions?

조회 수: 13 (최근 30일)
Vasiliki
Vasiliki 2011년 4월 6일
I wanted to see the code of svd, but when I type edit svd.m I get a description of the code and a comment saying Built-in function. What does this exactly mean? That svd is written directly in C?

채택된 답변

Laura Proctor
Laura Proctor 2011년 4월 6일
From the doc:
Functions that are frequently used or that can take more time to execute are often implemented as executable files. These functions are called built-ins.
Unlike MATLAB program file functions, you cannot see the source code for built-ins. Although most built-in functions do have a program file associated with them, this file is there mainly to supply the help documentation for the function.

추가 답변 (2개)

John D'Errico
John D'Errico 2011년 4월 6일
Yes. You can't see that code, as it does not exist in the form of m-code. Only the help is available, but MATLAB knows to use the compiled version. Usually this is to improve the speed.

Andrew Newell
Andrew Newell 2011년 4월 6일
A lot of MATLAB builtins are based on LAPACK. You might find this post interesting.

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by