|
From: | cyberdork33 |
Subject: | [Octave-bug-tracker] [bug #41923] genvarname produces variables with leading underscores |
Date: | Fri, 21 Mar 2014 14:48:58 +0000 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/33.0.1750.152 Chrome/33.0.1750.152 Safari/537.36 |
URL: <http://savannah.gnu.org/bugs/?41923> Summary: genvarname produces variables with leading underscores Project: GNU Octave Submitted by: cyberdork33 Submitted on: Fri 21 Mar 2014 02:48:57 PM GMT Category: Octave Function 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.8.1 Operating System: GNU/Linux _______________________________________________________ Details: Note that I have replicated this on GNU/Linux and OS X 10.8. octave allows the use of variables names with a leading underscore. data created in octave and saved CAN be loaded in MATLAB, but when working with data, issues can arise where variables with leading underscores would be encountered. MATLAB's genvarname uses 'x' as a leading character instead of '_' in octave: octave:9> genvarname('250_VAR') ans = _250_VAR matlab (2013b at least) does not allow leading underscores in variable names. >> struct._250_Var = 10 struct._250_Var = 10 | Error: The input character is not valid in MATLAB statements or expressions. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?41923> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |