From: Ender <jr147@msstate.edu>
Path: news.mathworks.com!newsfeed-00.mathworks.com!webcrossing
Newsgroups: comp.soft-sys.matlab
Subject: Re: MatLab Compiler
Message-ID: <ef5b10f.15@webcrossing.raydaftYaTP>
Date: Sat, 23 Jun 2007 19:16:22 -0400
References: <ef5b10f.-1@webcrossing.raydaftYaTP> <ef5b10f.10@webcrossing.raydaftYaTP> <ef5b10f.11@webcrossing.raydaftYaTP> <ef5b10f.13@webcrossing.raydaftYaTP>
Lines: 125
NNTP-Posting-Host: 146.229.139.228
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Xref: news.mathworks.com comp.soft-sys.matlab:415440


Marco D'Angelo wrote:
>
>
> Ender wrote:
>>
>>
>> Marco D'Angelo wrote:
>>>
>>>
>>> Chris Cottingham wrote:
>>>>
>>>>
>>>>>> Whenever I run my excutable, the program
creates
> a
>> mcr
>>> file.
>>>> I
>>>>>> looked
>>>>>> in the \toolbox\compiler\deploy
>>>>>>
>>>>>> but there was no Win32 file. There were other
> files
>> in
>>> the
>>>> deploy
>>>>>> subfolder, but they were all .m and .fig files.
> Why
>> is
>> it
>>>> that
>>>>>> whenever I created the mcr file that it did not
> also
>>> create
>>>> the
>>>>>> Win32
>>>>>> file?
>>>>
>>>> Sorry, that's the wrong directory. I mean the actual
> matlab
>>>> folder...
>>>> as in C:\Matlab73\toolbox\compiler\deploy\win32
>>>>
>>>>> Also, I have successfully run the excutable in
> another
>> folder
>>>> with
>>>>> just the .ctf and the .exe file. Whenever I run the
> file,
>> it
>>>>> creates
>>>>> the mcr file. Is my excutable able to run with just
> these
>>> files
>>>>> because I already have MatLab on my computer or is
it
>> because
>>> I
>>>>> have
>>>>> all the files that the excutable originally created
> in
>>> another
>>>>> folder
>>>>> or is it possible that the excutable is able to run
> as
> is
>>> with
>>>> just
>>>>> the above files?
>>>>
>>>> I suspect that it is just because matlab of the same
> version
>> as
>>> the
>>>> version used to create the executable is already
> installed
> on
>> the
>>>> system; part of your system admin's installation
> procedure
>> might
>>>> include the installation of the Matlab Component
Runtime
>> perhaps
>>>
>>> Hi guys,
>>> I'm writing you to ask for some suggest concerning with
> matlab
>>> compiler. I have both MLAB 6.5 and the 7.2 version. One the
> first
>>> one
>>> I've the compiler toolbox installed, but not on the
> 7.2.Anyway
>> I've
>>> tried - under the 6.5- to compile a scripted .m program
file
>> using
>>> the mcc command, but I was told that mcc command doesn't
> suite
> .m
>>> files. What could I do?What am I missing?
>>>
>>> Thx for you attention.
>>>
>>> Best regards,
>>>
>>> M.D.
>>
>> Did you first turn the .m file into a function file?
>
> No...:-)). How can I do?Thanks so much for your attention.
>
> Bye,
>
> Marco
   You first have to rename your file into a function file.
This is what I did for one of my programs.

function varargout=SimpBeam(varargin)

I named my SimpBeam.m into a function file. The function is written
such that I would put in inputs into the "varargin" but my program
does not use "varargrin" so whenever I run the program I just type
SimpBeam in the Command Window.
Try that and see what happens.