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:
Control a command prompt

Subject: Control a command prompt

From: Jessica

Date: 26 Oct, 2011 14:55:14

Message: 1 of 3

Hi...I'm looking to use the dos or system function to enter a command to run a program which was compiled in Visual Studio 2010 (C++) and released, but I'm not sure if I can keep it this simple. I see that C++ Mex files are not "officially supported," and I'm not sure how Mex files work. The simpler I could keep this, the better! Is there any way to use Matlab to just open and manipulate a command prompt?

Subject: Control a command prompt

From: Florin Neacsu

Date: 26 Oct, 2011 16:58:14

Message: 2 of 3

"Jessica" wrote in message <j8970i$cqs$1@newscl01ah.mathworks.com>...
> Hi...I'm looking to use the dos or system function to enter a command to run a program which was compiled in Visual Studio 2010 (C++) and released, but I'm not sure if I can keep it this simple. I see that C++ Mex files are not "officially supported," and I'm not sure how Mex files work. The simpler I could keep this, the better! Is there any way to use Matlab to just open and manipulate a command prompt?

Hi,

Maybe have a look at system

>doc system

Regards,
Florin

Subject: Control a command prompt

From: user

Date: 26 Oct, 2011 17:07:30

Message: 3 of 3

"Jessica" wrote in message <j8970i$cqs$1@newscl01ah.mathworks.com>...
> Hi...I'm looking to use the dos or system function to enter a command to run a program which was compiled in Visual Studio 2010 (C++) and released, but I'm not sure if I can keep it this simple. I see that C++ Mex files are not "officially supported," and I'm not sure how Mex files work. The simpler I could keep this, the better! Is there any way to use Matlab to just open and manipulate a command prompt?

you can try out this command
!cmd
(! = bang operator)

hth,
saif

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