How to I know this file? It is a .p file.

7 ビュー (過去 30 日間)
Lu gy
Lu gy 2021 年 4 月 15 日
編集済み: Abhishek Gupta 2021 年 4 月 21 日
Hi
When I am learning the code of the motor control module
I cannot see the code of this file, how should I learn this function?
  1 件のコメント
Constantino Carlos Reyes-Aldasoro
Constantino Carlos Reyes-Aldasoro 2021 年 4 月 15 日
The p-files are files for which the code has been obscured, most probably deliberately so that people cannot see the code:
Although it may be possible, it will not be easy to see what code it has. You can ask the creator of the file for the m-file, but most probably you will not get it as they created the p-file and not released an m-file.

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

回答 (2 件)

Abhishek Gupta
Abhishek Gupta 2021 年 4 月 19 日
編集済み: Abhishek Gupta 2021 年 4 月 21 日
Hi,
Referring to the following resources, which might help you in resolving the issue: -

Steven Lord
Steven Lord 2021 年 4 月 19 日
Constantino Carlos Reyes-Aldasoro is correct. If you want to see the implementation of a P-coded file you will need to ask the author or distributor of that file for the corresponding plain text file.
If this is a P-coded file distributed by MathWorks generally we will not provide the corresponding plain text script, function, or class file. My guess from the name is that it simply sets some parameters (based on the inputs with which that function is called?) on a controller object. I suspect if you assume that's what it does you should be able to understand what the rest of the code around it is doing.
  1 件のコメント
Walter Roberson
Walter Roberson 2021 年 4 月 19 日
Motor Control Blockset seems to be the source for the file.

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

カテゴリ

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

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by