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

Selva Karna
Selva Karna 2021년 3월 29일
put in ouput as .m function
Ali Mukhtar
Ali Mukhtar 2021년 3월 29일
didnt get how output will give .m file

댓글을 달려면 로그인하십시오.

 채택된 답변

Walter Roberson
Walter Roberson 2021년 3월 29일

0 개 추천

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

Ali Mukhtar
Ali Mukhtar 2021년 3월 29일
i cant find node in "explore" .... and not even .p file in https://www.mathworks.com/help/dsp/ref/lmsfilter.html
can you help me in this
Walter Roberson
Walter Roberson 2021년 3월 29일
toolbox/dsp/dsp/compiled/+dsp/en/LMSFilter.m --> class properties definition only
toolbox/dsp/dsp/compiled/+dsp/LMSFilter.p --> implementation
toolbox/dsp/dsp/compiled/+dspcodegen/LMSFilter.p --> implementation used for code generation
Ali Mukhtar
Ali Mukhtar 2021년 3월 29일
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 2021년 3월 31일
.p files are files that Mathworks has deliberately encoded to not be readable. They actively do not want you to read that source code.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Prepare Model Inputs and Outputs에 대해 자세히 알아보기

질문:

2021년 3월 29일

댓글:

2021년 3월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by