How to get the source code of a function

6 ビュー (過去 30 日間)
Giti Dimrov
Giti Dimrov 2021 年 12 月 13 日
コメント済み: Sigrid 2021 年 12 月 13 日
Is there a way to get the source code of a function of the communication toolbox in Matlab (eg., comm.OFDMModulator)?

回答 (1 件)

John D'Errico
John D'Errico 2021 年 12 月 13 日
編集済み: John D'Errico 2021 年 12 月 13 日
If the function is compiled, then no. Sorry, but no. MathWorks does not give out code, unless you work for them. So sure, just get a job there.
If the code is not compiled, so just an m--file, you can view it using the type function. This is far better than editing the code in the editor, since people far too often make changes without knowing they did so, and then save those changes. And since those who want to do this are often people who might not even realize they just saved some random change to a file, this is a source of biugs for new users to MATLAB. So avoid using the editor to view code.
If the code is compiled, and you try to list it out, this is what you will see for built-in functions:
type prod
'prod' is a built-in function.
So again, you probably just need to get a job there. And since the MathWorks is a nifty place to work, just go for it. ;-)
  1 件のコメント
Sigrid
Sigrid 2021 年 12 月 13 日
Thank you for your answer :)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeOFDM についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by