Hi,
I am using MATLAB7.12.0(R20011a) version. I got one project from MATLAB File Exchange. That project contains so many matlab Files. But only one file contain P code extension. I can't open that File. How can I open that file. Please Help.

 채택된 답변

Walter Roberson
Walter Roberson 2012년 12월 4일

3 개 추천

You can use any good-quality editor that supports binary files. Even emacs if you must ;-)
Your difficulty will be in making any sense out of the file after you open it. pcoded (.p) files do not have any usable source code in them. If what you need is the source code, you will need to ask the author of the package for it, but do not be surprised if they say NO. (Blatant bribes of beer (in advance!!) might help, but even that is not certain.)

댓글 수: 6

Jan
Jan 2012년 12월 4일
Usually offering money is more successful than beer.
It is a little bit strange to publish P-coded files in the FileExchange.
Walter Roberson
Walter Roberson 2012년 12월 4일
When I was covered by Conflict of Interest rules, I would have had to apply 4 steps up the hierarchy to accept even $1 in outside income, but I could accept physical gifts up to $5 "or as customary" (e.g., would cover 1 regular-sized bottle of beer.)
Bharat Sanchala
Bharat Sanchala 2016년 11월 30일
Walter, if you only have thoughts about beer and how much it costs, you should stop wasting my time. Type something relevant please.
Walter Roberson
Walter Roberson 2016년 11월 30일
Bharat Sanchala, look down below. You see the "Answer this question" box? You can post your solution there. If it is a good one then it might be Accepted, in which case your solution would appear before mine. If you are unhappy with the quality of my response, then you are free to out-compete.
(By the way, here, beer at restaurants costs between $4.75 and $27, at current prices.)
Jan
Jan 2016년 11월 30일
@Bharat Sanchala: It is your decision if you spend your time with reading Walter's message. So you cannot blame him to waste your time.
Perhaps it helps you, when I explain the underlying message of Walter's answer: P-coding is designed to prevent reding or editing of the files. Therefore asking for a way to "open" them is "funny" already.
@Walter: 27 US$ for a glass or bottle or barrel of beer... Well. Let me take back my comment from 4 Dec 2012. An invitation to one of your favorite restaurants would be a nice solution for the "beer or money" problem.
Vasishta Kanthi
Vasishta Kanthi 2017년 9월 20일
@bharat ... dude, life is not all about p coding... I guess you missed the whole point of Walter's answer.... and it ain't your question to start with
@Walter... come to Sweden .... at some restaurants, a pint of beer costs around $5 ... the good drinking bars cost cheaper at least ... not relevant to this question I know... but I was more interested on the beer bribe , lol...

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

추가 답변 (0개)

카테고리

질문:

2012년 12월 4일

댓글:

2017년 9월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by