[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #32296] matlabbatch: equivalent subscript assi
From: |
Volkmar Glauche |
Subject: |
[Octave-bug-tracker] [bug #32296] matlabbatch: equivalent subscript assignments produce unequal results |
Date: |
Sun, 30 Jan 2011 21:17:00 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13 |
URL:
<http://savannah.gnu.org/bugs/?32296>
Summary: matlabbatch: equivalent subscript assignments
produce unequal results
Project: GNU Octave
Submitted by: glauche
Submitted on: So 30 Jan 2011 21:16:59 GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
Using matlabbatch (see bug #32261) objects, the following commands should
produce two identical objects cr and cr1:
cr=cfg_repeat;
ce=cfg_exbranch;
ce.tag = 'ex';
cr.values{1}=ce;
cr1=cfg_repeat;
cr1.values{1}=cfg_exbranch;
cr1.values{1}.tag='ex';
The only difference is that the contents of cr.values{1} is created as a
separate object in workspace before it is assigned, while the contents of
cr1.values{1} is assigned 'on-the-fly'. In MATLAB,
isequal(cr,cr1)
returns true, while octave returns false. Octave should return true as well.
As far as I can tell, cr is the correct result, while cr1 is not created
correctly.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?32296>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #32296] matlabbatch: equivalent subscript assignments produce unequal results,
Volkmar Glauche <=