help-octave
[Top][All Lists]
Advanced

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

multi-line string in octave, Matlab code does not run in octave


From: Nasser M. Abbasi
Subject: multi-line string in octave, Matlab code does not run in octave
Date: Thu, 09 Jul 2015 12:57:56 -0500
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

I am trying to run some code I wrote in Matlab under Octave. This code runs ok 
in Matlab:

---------------------
myString=['\n'...
'\\section{short summary table}\n'];
----------------------

But Octave gives syntax error

-----------------------
octave
GNU Octave, version 3.8.1

octave:1> t.m
parse error near line 2 of file /home/me/data/t.m

  syntax error
'\\section{short summary table}\n'];
     ^
--------------------

and
-------------------------
cat t.m
myString=['\n'...
'\\section{short summary table}\n'];
---------------------

Does not octave support long string continuation using ... as
with Matlab? and if so, what would the syntax be?

thanks,
--Nasser



reply via email to

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