Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Matlab


  • Please log in to reply
No replies to this topic

#1 TMRK

TMRK

  • Members
  • 1 posts
  • OFFLINE
  •  
  • Local time:01:13 PM

Posted 03 October 2006 - 03:02 AM

Hello Guys,

I am new to matlab, I have created a dll of m files using .net compiler. The m file lines are go like this...

sys.T{8}=[5 9 8];
sys.EL(1:8)={'specht'};
sys.G{1}=[t E nu];
sys=linelstat(sys);


Now I have created an instance of the class in the dll and it asks three parameters like
fem.linelstat(int, ref MWArray[], MWArray).

I have tried to give the parameter like below

MWArray[] Sys = new MWArray[18];

MWNumericArray T = new int[8, 3] { { 1, 2, 5 }, { 2, 3, 6 }, { 1, 5, 4 }, { 2, 6, 5 }, { 4, 5, 8 }, { 5, 6, 9 }, { 4, 8, 7 }, { 5, 9, 8 } };
Sys[0] = T;

MWNumericArray X = new int[9, 2] { { 0, 0 }, { 1, 0 }, { 2, 0 }, { 0, 1 }, { 1, 1 }, { 2, 1 }, { 0, 2 }, { 1, 2 }, { 2, 2 } };
Sys[1] = X;

but when I run the application the method gives the error
"Object refrence not set in an instance of the object"

I want to know how the sys.P, sys.T values has to be given to the method "linelstat" (of dll).

I think there must be way of calling the methods using the
the dll. If any one have any information... Please let me know.

Thanks in Advance

Maria

BC AdBot (Login to Remove)

 





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users