Uploaded image for project: 'GMAT'
  1. GMAT
  2. GMT-2921

Arrays are corrupted when passed to MATLAB function

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: R2012a
    • Fix Version/s: R2013a
    • Component/s: MATLAB Interface
    • Labels:
      None
    • Environment:

      Windows 7 Enterprise 64-bit
      2012-07-10 build

      Description

      The attached script calls passthrough.m and tries to pass an array to MATLAB and back.

      While passing from GMAT to MATLAB, the array is corrupted. For example, this array (in GMAT):

      11 12                  
      21 22                  
      31 32
      

      becomes this array (in MATLAB):

      11 22                  
      12 31                  
      21 32
      

      Passing from MATLAB back to GMAT seems to retain the structure of the array as it was on the MATLAB side.

        Gliffy Diagrams

          Attachments

            Activity

            jjkparker Joel Parker created issue -
            jjkparker Joel Parker made changes -
            Field Original Value New Value
            Attachment GMAT-to-MATLAB-Array-Mapping.xlsx [ 12608 ]
            shughes Steven Hughes made changes -
            Fix Version/s R2013a [ 10201 ]
            Assignee Joel Parker [ jjkparker ] Linda Jun [ gmatloj ]
            jjkparker Joel Parker made changes -
            Affects Version/s R2012a [ 10000 ]
            gmatloj Linda Jun made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            gmatloj Linda Jun made changes -
            Worklog Id 12019 [ 12019 ]
            Time Spent 2 hours [ 7200 ]
            Remaining Estimate 0 minutes [ 0 ]
            gmatloj Linda Jun made changes -
            Worklog Id 12020 [ 12020 ]
            Time Spent 2 hours [ 7200 ] 2 hours, 5 minutes [ 7530 ]
            gmatloj Linda Jun made changes -
            Resolution Fixed [ 1 ]
            Assignee Linda Jun [ gmatloj ] Joel Parker [ jjkparker ]
            Status In Progress [ 3 ] Resolved [ 5 ]
            jjkparker Joel Parker made changes -
            Status Resolved [ 5 ] Verified [ 10002 ]
            jjkparker Joel Parker made changes -
            Status Verified [ 10002 ] Closed [ 6 ]

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 5 minutes
                  2h 5m