|
From: | Rik |
Subject: | Re: Matlab-compatible string class |
Date: | Thu, 28 Dec 2017 08:41:00 -0800 |
On 12/27/2017 09:38 PM,
address@hidden wrote:
I don't see a smooth transition path either. Although Matlab presents the string class as a fundamental data type, it is actually closer to a container data type like a cell array. In fact, by using cell arrays of strings you can make portable code that will run in either Octave or Matlab. Maybe this is unkind, but the principal advantage seems to be the syntactic sugar of using parentheses '()' for indexing rather than cell array indexing '{}'. Since string arrays are really a data container type, they just contain ordinary Matlab strings which we already know to be the equivalent of single-quoted 1xN character row vectors. Hence, '\n' is two characters even within a string array created with quotes. This is probably such an involved topic, with architectural implications, that we should discuss it face-to-face at OctConf 2018. --Rik |
[Prev in Thread] | Current Thread | [Next in Thread] |