Get .m file of simulink block

7 Ansichten (letzte 30 Tage)
Ali Mukhtar
Ali Mukhtar am 29 Mär. 2021
Kommentiert: Walter Roberson am 31 Mär. 2021
i have a LMS filter in simulink i want to get its code .... so i can have better understanding how code works ... but im unable to get its code
  2 Kommentare
Selva Karna
Selva Karna am 29 Mär. 2021
put in ouput as .m function
Ali Mukhtar
Ali Mukhtar am 29 Mär. 2021
didnt get how output will give .m file

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 29 Mär. 2021
Simulink blocks do not have .m files, except for the case that you can register a .m file as an S function. The S function block is what would appear in the Simulink diagram, but in that case there would be a backing .m file.
In particular, MATLAB Function Blocks do not have .m files; the code is stored as part of the model, and can be read by "explore" the node and looking at its properties.
If you are looking for the implementation of https://www.mathworks.com/help/dsp/ref/lmsfilter.html then it is inside a .p file.
  4 Kommentare
Ali Mukhtar
Ali Mukhtar am 29 Mär. 2021
i got the files but it is asking to delete the p-file or run the p code function on this file
Walter Roberson
Walter Roberson am 31 Mär. 2021
.p files are files that Mathworks has deliberately encoded to not be readable. They actively do not want you to read that source code.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Event Functions 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