how to see the script of build-in function?

1 Ansicht (letzte 30 Tage)
Yuji Zhang
Yuji Zhang am 14 Apr. 2014
Kommentiert: Yuji Zhang am 14 Apr. 2014
Hi all~
I put "edit sum" in the command line. And I only saw the notes about it (begin with %). How can I see the script of this function?
Thanks~

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 14 Apr. 2014
There is no "script" for it. sum() is coded in lower level code, such as C or Fortran, and is accessed from MATLAB in binary form. You cannot use a "decompiler" to "reverse engineer" the code without violating your license agreement.
To get access to the source that Mathworks uses for sum(), you need to get a job or internship at Mathworks.
  1 Kommentar
Yuji Zhang
Yuji Zhang am 14 Apr. 2014
I see Walter. Thanks a lot!
I'll check some script of other functions to find out the things I want to see.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by