octave-maintainers
[Top][All Lists]
Advanced

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

Re: Matlab compatability for strtrim


From: Michael D Godfrey
Subject: Re: Matlab compatability for strtrim
Date: Fri, 22 Jul 2011 17:25:47 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc15 Thunderbird/3.1.11

On 07/22/2011 05:05 PM, Rik wrote:
7/22/11

While trying to make strtrim () perform better I ran into some questions
about compatibility with Matlab.  Could someone with Matlab access try the
following two tests?

find (isspace (char(0):char(255)))

double (strtrim (char ([0 0 65:67 32 10])))

Thanks,
Rik
                                                Copyright 1984-2009 The MathWorks, Inc.
                                                Version 7.9.0.529 (R2009b) 64-bit (glnxa64)
                                                              August 12, 2009

 
  To get started, type one of these: helpwin, helpdesk, or demo.
  For product information, visit www.mathworks.com.
 
>> find (isspace (char(0):char(255)))

ans =

    10    11    12    13    14    33   134   161

>> double (strtrim (char ([0 0 65:67 32 10])))

ans =

     0     0    65    66    67

>>


reply via email to

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