From: Adam Chapman on
I know I can open a new notepad window from matlab with "!notepad",
but how can I give that noew notepad file a name?

I can't find the "!" command in the matlab help documantation
From: us on
Adam Chapman <adamchapman1985(a)hotmail.co.uk> wrote in message <a32eca98-2929-4492-aa44-ce3156ca30ca(a)s9g2000yqd.googlegroups.com>...
> I know I can open a new notepad window from matlab with "!notepad",
> but how can I give that noew notepad file a name?
>
> I can't find the "!" command in the matlab help documantation

one of the solutions

fnam='anew.txt';
com=sprintf('notepad %s',fnam);
system(com);

us
From: Steven Lord on

"Adam Chapman" <adamchapman1985(a)hotmail.co.uk> wrote in message
news:a32eca98-2929-4492-aa44-ce3156ca30ca(a)s9g2000yqd.googlegroups.com...
>I know I can open a new notepad window from matlab with "!notepad",
> but how can I give that noew notepad file a name?
>
> I can't find the "!" command in the matlab help documantation

There's a reference page for "special characters" in the documentation; the
bang operator ! is listed on that page. There's also a help file that you
can access using HELP PUNCT (for help on punctuation characters.)

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

The SYSTEM, DOS, and UNIX reference pages also list ! in their See Also
sections (although that text is not a hyperlink in the DOS reference page --
I'll ask the documentation staff to correct that.)

If you need to execute a system command and you need to use a variable or an
expression to construct that command, use SYSTEM as us suggested.

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com