Welcome! Log In Create A New Profile

Advanced

TaskObject indexing

Posted by aboharbf 
TaskObject indexing
September 16, 2019 08:43AM
Hey Jaewon,

Just updated to the latest version of MonkeyLogic, and it seems like I'm having trouble indexing into TaskObject. Any index (including end) produces the following.

K>> TaskObject

TaskObject = 

  1×7 mltaskobject array with properties:

          ID: [837 838 839 840 841 842 843]
    Modality: [1 2 2 2 2 2 2]
      Status: [0 0 0 0 0 0 0]
    Position: [7×2 double]
       Scale: [1 1 1 1 1 1 1]
       Angle: [0 0 0 0 0 0 0]
        Info: [1×7 struct]
    MoreInfo: {[1×1 struct]  [1×1 struct]  [1×1 struct]  [1×1 struct]  [1×1 struct]  [1×1 struct]  [1×1 struct]}
        Size: [7×2 double]

K>> TaskObject(2)
Undefined function or variable 'mglclass'.

Error in mltaskobject/subsref (line 136)
                        b = mglclass;
Re: TaskObject indexing
September 16, 2019 10:06AM
Sorry. A test code is inserted mistakenly.

Please modify Line 136 of mltaskobject.m like the following. I will update packages soon.
From: b = mglclass;
To  : b = mltaskobject;

-----

The download packages are updated.
Re: TaskObject indexing
September 17, 2019 10:39AM
Fantastic, Thank you!

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.