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

  • SEARCH
  • Home
  • 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 9176391
In Process

The Archive Base Latest Questions

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

I am using matlab NE builder to compile a dll file which I call

  • 0

I am using matlab NE builder to compile a dll file which I call from C#. The matlab code is confirmed to work in matlab, but when called from c# the following error occurs:

An unhandled exception of type ‘System.Exception’ occurred in
MWArray.dll

Additional information:

… MWMCR::EvaluateFunction error … Subscript indices must either
be real positive integers or logicals. Error in => KalmanFilter.m at
line 108.

The line in question is the following:

plot(data(:, 1), data(:, 2));

I have confirmed that when the line is reached, the variable data has size n by 4, with n > 50, why the statement is supposed to make sense.

Anyone got any experience on this?
Thanks in advance

  • 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:06:05+00:00Added an answer on June 17, 2026 at 5:06 pm

    As far as I know, this issue arise when you name variables as you function names or as MatLAB functions (reserved names).
    Make sure this is not happening.

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

Sidebar

Related Questions

I'm using MATLAB Builder NE for interoperability to call MATLAB functions from a C#
I am using matlabcontrol to call Matlab functions from Java My code works well,
I'm using MATLAB's deployment tool to compile a simple project which uses a mex
I'm using Matlab and need to get an ASAP2 (a2l) file exported from a
I am trying to compile a COM object in Matlab 2011a using Matlab Builder
I am trying to randomly access a file from a folder using matlab. Could
I'm doing sampling from log-normal distribution in Java using Matlab code (with javabuilder java).
Using MATLAB, I have this code: value = input('>> Enter a value: '); and
I am using matlab's randn function to generate random random numbers from a standard
I am separating left and right channels of sound files using Matlab. The code

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.