[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #52647] missing function: erase (introduced Ma
From: |
Doug Stewart |
Subject: |
[Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b) |
Date: |
Tue, 26 Dec 2017 06:54:21 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36 |
Follow-up Comment #21, bug #52647 (project octave):
Rik:
Here is a summery of what I have found.
We can use char arrays under the following conditions.
nstr=erase( “The slow cat caught the mouse” , “cat ”)
nstr=erase( “The slow cat caught the mouse” , [“cat” ; “slow “])
nstr=erase(originalstr, delstr)
1) if originalstr is just one string (use num2cell )
2) if delstr is just one string then trailing spaces will work.
(Use num2cell )
3) if delstr is multiple strings then only the longest one will have
correct trailing spaces. The rest will have too many trailing
spaces.
(Use num2cell )
This should not be allowed because of the trailing spaces.
We can use cells for any condition.
nstr=erase( {“The slow cat caught the mouse”} , {“cat ” ; “slow
“})
nstr=erase( {“The slow cat caught the mouse”} , {“cat ” , “slow
“})
nstr=erase( {“The slow cat” ; “ caught the mouse”} , {“cat ” ,
“slow “})
etc.
(use cellstr)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?52647>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), (continued)
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Sahil Yadav, 2017/12/22
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Rik, 2017/12/25
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Doug Stewart, 2017/12/25
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Rik, 2017/12/25
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Doug Stewart, 2017/12/25
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Rik, 2017/12/25
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Doug Stewart, 2017/12/25
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Rik, 2017/12/26
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Sahil Yadav, 2017/12/26
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Doug Stewart, 2017/12/26
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b),
Doug Stewart <=
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Rik, 2017/12/27
- [Octave-bug-tracker] [bug #52647] missing function: erase (introduced Matlab 2016b), Rik, 2017/12/27