Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to run a matlab p code?

453 views
Skip to first unread message

lav

unread,
Oct 23, 2011, 1:30:32 AM10/23/11
to
Hi,

I would like to make a executable/pcode of a script so that i can send the pcode to my friend so he can run the file without matlab. please suggest me something.

Bruno Luong

unread,
Oct 23, 2011, 6:50:29 AM10/23/11
to
"lav " <vijay....@gmail.com> wrote in message <j808po$9tm$1...@newscl01ah.mathworks.com>...
> Hi,
>
> I would like to make a executable/pcode of a script so that i can send the pcode to my friend so he can run the file without matlab. please suggest me something.

You need a compiler toolbox. The deployment is independent of using pfiles or mfiles.

Bruno

lav

unread,
Oct 23, 2011, 7:50:29 AM10/23/11
to

So, all I did so far is, I wrote a script and in the command line, I typed
>>pcode nameofthescript

Question : 1
I got the pcode and I should send both the pcode and the mfile or just the pcode alone?

Question : 2
I have a MATLAB compiler toolbox version 4.9, but when i try to do,

mbuild-setup I get the following error.

""WARNING(msvc90freeopts): SDK does not exist ...
@C:\Program Files\Microsoft SDKs\Windows\v6.0A

Select a compiler:

[0] None

Compiler: ""

Question 3:
You said, my friend should have a Matlab compiler, so I tried to run the application on my own system before testing it on others. But got the above error.

Please let me know what to do Bruno.

Thx..

Steven_Lord

unread,
Oct 23, 2011, 10:51:07 PM10/23/11
to


"lav " <vijay....@gmail.com> wrote in message
news:j808po$9tm$1...@newscl01ah.mathworks.com...
You will need to use MATLAB Compiler to do so. See the Deployment Process
section in the documentation for instructions on what to do.

http://www.mathworks.com/help/toolbox/compiler/br2jauc-1.html

--
Steve Lord
sl...@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

0 new messages