octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #32222] object array failure


From: anonymous
Subject: [Octave-bug-tracker] [bug #32222] object array failure
Date: Mon, 24 Jan 2011 10:25:08 +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/?32222>

                 Summary: object array failure
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mo 24 Jan 2011 10:25:07 UTC
                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:

In the context of SPM, I try to create an array of custom objects. However,
the following code fails:


matlabbatch{1}.spm.spatial.realign.estimate.eoptions.weight = '';
matlabbatch{2}.spm.spatial.realign.write.data(1) = cfg_dep;
matlabbatch{2}.spm.spatial.realign.write.data(1)
error: subsref: A(I): index out of bounds; value 1 out of bound 0
error: called from:
error:   /home/volkmar/octave/@cfg_dep/subsref.m at line 29, column 5


Similar code works:

matlabbatch{1}.spm.spatial.realign.estimate.eoptions.weight = '';
matlabbatch{2}.spm.spatial.realign.write.data = cfg_dep;


Unfortunately, I can't simply use the second version of the code, since the
first version of code exists in many scripts that SPM users created on their
own.

Best,

Volkmar



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Mo 24 Jan 2011 10:25:07 UTC  Name: cfg_dep.tgz  Size: 5kB   By: None

<http://savannah.gnu.org/bugs/download.php?file_id=22502>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32222>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]