From the manual
http://www.gnu.org/software/octave/doc/interpreter/Strings.html#Strings============================================================================
In double-quoted strings, the backslash character is used to introduce escape
sequences that represent other characters. For example, `\n' embeds a newline
character in a double-quoted string and `\"' embeds a double quote character.
In single-quoted strings, backslash is not a special character.
============================================================================
On Tue, May 13, 2008 07:32, gOS wrote:
#
# I know GNU plot is being phased out, but I think this goes a bit deeper than
# GNU plot. Run both of these without jhandles and pay attention to the title:
#
# function ptest1
# a = 1:100;
# b = 1:100;
#
# plot(a,b)
# title('This is \n a test')
#
# end
#
# - - - - - - - - - - - - - - - - - - -
#
# function ptest2
# a = 1:100;
# b = 1:100;
#
# plot(a,b)
# title("This is \n a test")
#
# end
#
# - - - - - - - - - - - -
#
# Output:
# Test1
#
# This is n a test
#
# Test2
#
# This is
# a test
#
# - - - - - - - - - -
#
# I do not think using double or single quotes should have this kind of an
# impact on formatting, and I would consider it a bug.
# --
# View this message in context:
#
http://www.nabble.com/Single-vs-Double-Quotes-control-characters-plot-titles-tp17209992p17209992.html# Sent from the Octave - Bugs mailing list archive at Nabble.com.
#
# _______________________________________________
# Bug-octave mailing list
#
Bug-octave@...
#
https://www.cae.wisc.edu/mailman/listinfo/bug-octave#
--
http://www.isr.ist.utl.pt/~etienne_______________________________________________
Bug-octave mailing list
Bug-octave@...
https://www.cae.wisc.edu/mailman/listinfo/bug-octave