[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #45510] multi-line string in octave requires a
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #45510] multi-line string in octave requires a comma |
Date: |
Thu, 09 Jul 2015 20:36:24 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0 |
URL:
<http://savannah.gnu.org/bugs/?45510>
Summary: multi-line string in octave requires a comma
Project: GNU Octave
Submitted by: None
Submitted on: Thu 09 Jul 2015 08:36:22 PM UTC
Category: Interpreter
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name: Nasser M. Abbasi
Originator Email: address@hidden
Open/Closed: Open
Discussion Lock: Any
Release: 4.0.0
Operating System: GNU/Linux
_______________________________________________________
Details:
This works in Matlab 2015a
myString=['a'...
'b'];
But gives syntax error in Octave.
parse error:
syntax error
>>> 'b'];
^
Solution is to rewrite it by adding a comma as separator, as in
myString=['a',...
'b'];
Now it works the same on Matlab and Octave. Since comma is not required in
Matlab, this is an incompatibility issue.
Thanks,
--Nasser
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?45510>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #45510] multi-line string in octave requires a comma,
anonymous <=