how to install a command inside the .p file?

2 ビュー (過去 30 日間)
Halil Ibrahim Binici
Halil Ibrahim Binici 2017 年 1 月 13 日
コメント済み: Steven Lord 2017 年 1 月 13 日
I have downloaded a .p file. I have to get a self-domained command in there to use this command in my simulation? How can I install this command to Matlab from .p file?

回答 (1 件)

the cyclist
the cyclist 2017 年 1 月 13 日
By design, a p-file is meant to be non-readable and non-editable. They are created for the express purpose of protecting the source code.
  2 件のコメント
Halil Ibrahim Binici
Halil Ibrahim Binici 2017 年 1 月 13 日
so how can i run the self-domained command inside the .p file to matlab? I have tried this .p code to extract and to move my MATLAB working directory.
Steven Lord
Steven Lord 2017 年 1 月 13 日
You want to execute the file with the .p extension? As long as it is in a directory on the MATLAB search path, just type its name without the .p extension. This is just like how you would run a MATLAB function with the .m extension by typing its name without the .m extension.
If you want to modify the .p file, you will need to either ask the person who gave you the .p file to modify it or ask them for the corresponding .m file with source code so you can modify it.

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by