Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9177549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:21:05+00:00 2026-06-17T17:21:05+00:00

I currently try to convert a .mat-file to XML. For this task, I have

  • 0

I currently try to convert a .mat-file to XML. For this task, I have to use a library, which gives me a dynamic object back. I know the structure of the .mat-file, so I can get the data out of it. I store this data in an Object. One of the values of the .mat file is of the MATLAB-type <1701x256 double>. I thought this would be double[][]. But when I try to assign the value, I get:

Unbehandelte Ausnahme: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: Der 
double[*,*]-Typ kann nicht in double[][] konvertiert werden.
   bei CallSite.Target(Closure , CallSite , Object )
   bei System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet](CallSite site,T0 arg0)
   bei CameraParser.Program.Main(String[] args) in c:\myProject\Program.cs:Zeile 44.

What is double[*,*] for a type? Of which type should the attribute of the object to which I assign the value to, be?

I tried

double[][] myAttribute;

and

double[] myAttribute;

and

double** myAttribute;

The last one gave

Error   6   Pointers and fixed size buffers may only be used in an unsafe context
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:21:06+00:00Added an answer on June 17, 2026 at 5:21 pm

    The * in the type name indicates that you got a non-conforming array type back. Common with COM servers in particular, they tend to use 1 as the lower bound. You cannot cast such an array to a C# array type, it only supports arrays with a lower bound of 0. But you can cast it to Array.

    Use the Array methods to access the array. Like Array.GetLowerBound() tells you where to start indexing, GetUpperBound() to find out where to stop. Read an array element with Array.GetValue(). You’ll need the overload that takes int[] since this is a two-dimensional array and not a jagged array.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am convert xml to xml file, I try to convert text as for
I currently try to use Reachability in iOS 5.1 on iPad. There is a
I currently have MVS2008 and I want to try the 2010 version hoping that
I am currently using code similar to this: try { // IE ONLY var
I'm currently reading through this jquery masking plugin to try and understand how it
I have started to try out noSQL databases now and are currently testing out
Currently, I am trying to clean up an HTML file using JTidy, convert it
I currently have pagination working in my MVC 3 project using the PagedList library
Background Currently I have a C# Silverlight business application which uses RIA Services. The
Error: Cannot convert type 'string' to 'object[*,*]' That's the error I have been getting.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.