|
From: | PL |
Subject: | [Octave-bug-tracker] [bug #33940] str2num and other conversion functions do not return a flag |
Date: | Wed, 03 Aug 2011 18:03:20 +0000 |
User-agent: | Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) |
URL: <http://savannah.gnu.org/bugs/?33940> Summary: str2num and other conversion functions do not return a flag Project: GNU Octave Submitted by: gbhrt Submitted on: ons 3 aug 2011 18.03.19 Category: Interpreter Severity: 3 - Normal Priority: 5 - Normal Item Group: Matlab Compatibility Status: None Assigned to: None Originator Name: Originator Email: Open/Closed: Open Discussion Lock: Any Release: 3.4.2 Operating System: Microsoft Windows _______________________________________________________ Details: In Matlab str2num and most other conversion functions return the value and a flag if the conversion was ok, Octave does not. Example in Matlab: >> s = '123'; >> [n, ok] = str2num(s) n = 123 ok = 1 In Octave this error occurs: "error: element number 2 undefined in return list" _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?33940> _______________________________________________ Meddelandet skickades via/av Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |