help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with single quotes


From: Andreas Yankopolus
Subject: Re: Problem with single quotes
Date: Thu, 2 Oct 2008 10:49:48 -0400

Søren,

I doubt that'll work in Matlab either:

 1) Matlab doesn't have the printf function -- you have to use fprintf

I've changed all my printf(…) statements to fprintf (1, …)

 2) The escape code for ' inside a single quoted string is ''.

So, the following should work:
 fprintf ('''')

I did not know that. That statement prints a double quote in Octave. I'll give it a shot in Matlab and see what happens.

Thanks,

Andreas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]