octave-maintainers
[Top][All Lists]
Advanced

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

Re: Help with erase()


From: Rik
Subject: Re: Help with erase()
Date: Tue, 26 Dec 2017 08:32:42 -0800

On 12/26/2017 02:33 AM, address@hidden wrote:
> Subject: > Re: Help with erase() > From: > Steph Bredenhann <address@hidden> > Date: > 12/25/2017 11:10 PM > To: > address@hidden > List-Post: > <mailto:address@hidden> > Precedence: > list > MIME-Version: > 1.0 > References: > <address@hidden> > In-Reply-To: > <address@hidden> > Message-ID: > <address@hidden> > Content-Type: > multipart/alternative; boundary="------------392867A0F0A911AE0620A8D6" > Message: > 5 > > Matlab R2017b Ubuntu 16.04 LTS > > >> untitled > Error using untitled (line 1) > Dimensions of matrices being concatenated are not consistent. > > On 26/12/2017 07:39, Rik wrote: >> Could someone try the following code in Matlab? >> >> s = erase('this is it',['this';'is']) >> double (s)
Okay, I thought Matlab could at least handle concatenation.  Try this instead

s = erase ('this is it', ['this';'is  '])
double (s)

I don't want double quotes because I'm trying to check if character arrays are supported and double quotes will create string arrays which are an entirely different data type.

Cheers,
Rik



reply via email to

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