Path: news.mathworks.com!not-for-mail
From: "Ashley " <whitney.rawls@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Issues Writing to File
Date: Sat, 7 Nov 2009 13:28:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 12
Message-ID: <hd3sl1$esl$1@fred.mathworks.com>
Reply-To: "Ashley " <whitney.rawls@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257600481 15253 172.30.248.37 (7 Nov 2009 13:28:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 7 Nov 2009 13:28:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2080389
Xref: news.mathworks.com comp.soft-sys.matlab:583210


I'm having trouble writing to a file using fprintf.  The issues is I need to write lines like:

fprintf('        name='C:/Documents and Settings/ecslogon/Desktop/ME726_Project/Marco Test/Test_Job-3.odb'\n');

This means that I need to print " ' " to the file without ending the fprintf statement.  How is this done?

The second issue is I need to write " ( " and " ) " to the file without ending the fprintf (see example below) or causing Matlab to give me an inblance error.  How is this done? 

fprintf('        INVARIANT, 'Max. Principal'), )), ))\n\n');

Thank you for your time,
Ashley