|
From: | Ken Tsui |
Subject: | [Octave-bug-tracker] [bug #48725] Octave deblank cannot accept empty result |
Date: | Tue, 9 Aug 2016 02:26:25 +0000 (UTC) |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36 |
URL: <http://savannah.gnu.org/bugs/?48725> Summary: Octave deblank cannot accept empty result Project: GNU Octave Submitted by: kentsui Submitted on: Tue 09 Aug 2016 02:26:23 AM GMT Category: None Severity: 3 - Normal Priority: 5 - Normal Item Group: Matlab Compatibility Status: None Assigned to: None Originator Name: KT Originator Email: Open/Closed: Open Discussion Lock: Any Release: 4.0.3 Operating System: Microsoft Windows _______________________________________________________ Details: If an empty array is inputted into the deblank function, it will return "deblank: S argument must be a string or cellstring" while Matlab will return back the empty array. *Example of the error:* >> deblank([]) error: deblank: S argument must be a string or cellstring error: called from deblank at line 73 column 5 *Proposal:* Modify "C:\Octave\Octave-4.0.3\share\octave\4.0.3\m\strings\deblank.m" as follows. ... elseif (isempty(s)) %KT - Added s=s; %KT - Added else error ("deblank: S argument must be a string or cellstring"); endif _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?48725> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |