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:
running batch file

Subject: running batch file

From: Adam Chapman

Date: 26 Oct, 2008 10:40:03

Message: 1 of 3

Hi,

I recently used some source code that ran a batch file with the
command

!filename.bat

where "filename" was the name of the batch file.

I've never seen this ! notation used before, and can't find it in
matlab help. Could it belong to UNIX syntax? I know Matlab does use
unix syntax sometimes but have no experience with that.

Regard,
Adam

Subject: running batch file

From: tpl@eng.cam.ac.uk (Tim Love)

Date: 26 Oct, 2008 11:15:15

Message: 2 of 3

Adam Chapman <adam.chapman@student.manchester.ac.uk> writes:

>I've never seen this ! notation used before, and can't find it in
>matlab help.


http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/specialcharacters.html

Subject: running batch file

From: Joerg Buchholz

Date: 26 Oct, 2008 11:20:03

Message: 3 of 3

help punct:

  ! Exclamation point. Any text following the '!' is issued
      as a command to the underlying computer operating system.
      On the PC, adding & to the end of the ! command line, as in
         !dir &
      causes the output to appear in a separate window and for the window
      to remain open after the command completes.
 

Adam Chapman <adam.chapman@student.manchester.ac.uk> wrote in message <d9def76a-5110-42a1-8a1b-6e1f5d97d39e@m3g2000hsc.googlegroups.com>...
> Hi,
>
> I recently used some source code that ran a batch file with the
> command
>
> !filename.bat
>
> where "filename" was the name of the batch file.
>
> I've never seen this ! notation used before, and can't find it in
> matlab help. Could it belong to UNIX syntax? I know Matlab does use
> unix syntax sometimes but have no experience with that.
>
> Regard,
> Adam

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