Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
pass parameters to exe

Subject: pass parameters to exe

From: Vihang Patil

Date: 21 Mar, 2008 10:15:04

Message: 1 of 2

Hello this question is an extention to the question posted
here
http://www.mathworks.com/matlabcentral/newsreader/view_thre
ad/166117.

I need to know if it is possible that in and compiled
application an *.exe waits for and accepts parameters from
the command prompt and updates the following parameters
into the gui?

Example:
Suppose I make an compiled application called name.exe and
its a GUI with only one text box where the name of the
person which will be sent as the parameter will be
displayed.
ex:
name vihang
Now the gui screen pops up and I see vihang displayed
there.

Now I want the "same gui" to display makarand when I enter
name makarand

It is very essential that only one gui is opened and that
only keeps on updating the names and through command line
interface only and not through gui interface like
pushbutton and edit box etc..

Thanks and Regards
Vihang

Subject: pass parameters to exe

From: roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson)

Date: 1 Apr, 2008 22:21:51

Message: 2 of 2

In article <fs01r8$rbu$1@fred.mathworks.com>,
Vihang Patil <vihang_patil@yahoo.com> wrote:

>Suppose I make an compiled application called name.exe and
>its a GUI with only one text box where the name of the
>person which will be sent as the parameter will be
>displayed.
>ex:
>name vihang
>Now the gui screen pops up and I see vihang displayed
>there.

>Now I want the "same gui" to display makarand when I enter
>name makarand

>It is very essential that only one gui is opened and that
>only keeps on updating the names and through command line
>interface only


I think you can use the input() function to read data from
the command line in a compiled matlab program (but I'm not certain.)
--
  "The whole history of civilization is strewn with creeds and
  institutions which were invaluable at first, and deadly
  afterwards." -- Walter Bagehot

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us