From: Adam Chapman on 14 Jul 2010 11:12 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 14 Jul 2010 11:23 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 14 Jul 2010 11:57 "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
|
Pages: 1 Prev: Fill in a matrix Next: resid function - System Identification Toolbox |